Class: RubyLint::MethodCall::DefineMethod

Inherits:
Base
  • Object
show all
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

#node, #vm

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RubyLint::MethodCall::Base

Instance Method Details

#evaluate(arguments, context, block = nil) ⇒ Object

See Also:



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