Class: RubyLint::MethodCall::DefineMethod
- Defined in:
- lib/ruby-lint/method_call/define_method.rb
Overview
The DefineMethod class is used to process define_method
calls.
Currently this class is only used to set the instance type of the block
to the correct value.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RubyLint::MethodCall::Base
Instance Method Details
#evaluate(arguments, context, block = nil) ⇒ Object
12 13 14 |
# File 'lib/ruby-lint/method_call/define_method.rb', line 12 def evaluate(arguments, context, block = nil) block.instance! if block && block.block? end |