Top Level Namespace
Defined Under Namespace
Modules: Methodsolver
Instance Method Summary collapse
Instance Method Details
#solve(&block) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/methodsolver.rb', line 46 def solve(&block) object, found = Methodsolver.call(&block) puts "Found #{found.count} methods for #{block.source.strip rescue 'source not available'}" found.map do |symbol| method = object.method(symbol) puts "- #{method.owner}\e[32m##{method.name}\e[0m" end puts end |