Class: Arspy::Operators::Interpreter::MethodInterpreter
- Inherits:
-
AttributeInterpreter
- Object
- Base
- AttributeInterpreter
- Arspy::Operators::Interpreter::MethodInterpreter
- Defined in:
- lib/arspy/operators/interpreter/method_interpreter.rb
Class Method Summary collapse
Methods inherited from AttributeInterpreter
Methods inherited from Base
Constructor Details
This class inherits a constructor from Arspy::Operators::Interpreter::Base
Class Method Details
.applies?(array, method_name) ⇒ Boolean
6 7 8 |
# File 'lib/arspy/operators/interpreter/method_interpreter.rb', line 6 def self.applies?(array, method_name) array.first.respond_to?(method_name) && array.first.method(method_name).arity == 0 end |