# File lib/focus.rb, line 14 14: def blur 15: parent = self.superclass 16: 17: ObjectSpace.each_object Class do |klass| 18: next unless parent > klass 19: next if klass == self 20: 21: klass.send :focus 22: klass.send :undef_method, :default_test 23: end 24: end
# File lib/focus.rb, line 2 2: def focus *wanteds 3: wanteds.map! { |m| m.to_s } 4: unwanteds = public_instance_methods(false).grep(/test_/) - wanteds 5: unwanteds.each do |unwanted| 6: remove_method unwanted 7: end 8: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.