Method: One9::Spy.valid_methods
- Defined in:
- lib/one9/spy.rb
.valid_methods(methods) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/one9/spy.rb', line 11 def self.valid_methods(methods) methods.select do |meth| if meth.real_klass.nil? puts "#{meth.klass} does not exist. Skipping #{meth.name}..." false elsif !meth.exists? puts "#{meth.name} is not a method. Skipping ..." false else true end end end |