Class: Jeeves::ResolveMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/jeeves/resolve_method.rb

Class Method Summary collapse

Class Method Details

.call(scope, name) ⇒ Object



3
4
5
6
7
# File 'lib/jeeves/resolve_method.rb', line 3

def self.call(scope, name)
  if scope.respond_to?(name)
    scope.method(name)
  end
end