class RubyLint::MethodCall::DefineMethod

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.

Public Instance Methods

evaluate(arguments, context, block = nil) click to toggle source

@see Base#evaluate

# File lib/ruby-lint/method_call/define_method.rb, line 12
def evaluate(arguments, context, block = nil)
  block.instance! if block && block.block?
end