Class: Module

### Home Classes Methods

### In Files

- lib/focus.rb
- lib/zentest.rb

### Parent

Object

### Methods

- #blur
- #focus
- #focus_re
- #zentest

### Files

- History.txt
- Manifest.txt
- README.txt
- how_to_use_zentest.txt
- example.txt

### Class/Module Index

Quicksearch

- Autotest
- Autotest::AutoUpdate
- Autotest::Bundler
- Autotest::Isolate
- Autotest::Once
- Autotest::Preload
- Autotest::RCov
- Autotest::Restart
- Autotest::Timestamp
- FunctionalTestMatrix
- Module
- Multiruby
- UnitDiff
- ZenTest
- ZenTestMapping

No matching classes.

# Module

### Public Instance Methods

blur() click to toggle source

    # File lib/focus.rb, line 15
    def blur
      parent = self.superclass

      ObjectSpace.each_object Class do |klass|
        next unless parent > klass
        next if klass == self

        klass.send :focus
        klass.send :undef_method, :default_test
      end
    end

focus(*wanteds) click to toggle source

    # File lib/focus.rb, line 2
    def focus *wanteds
      wanteds.map! { |m| m.to_s }
      unwanteds = public_instance_methods(false).grep(/test_/).map(&:to_s)
      unwanteds -= wanteds
      unwanteds.each do |unwanted|
        remove_method unwanted
      end
    end

focus_re(regexp) click to toggle source

    # File lib/focus.rb, line 11
    def focus_re regexp
      focus(*public_instance_methods.grep(regexp))
    end

zentest() click to toggle source

    # File lib/zentest.rb, line 36
    def zentest
      at_exit { ZenTest.autotest(self) }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.