Class: Platform::IEL::SymbolDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/introhive_expression_language/iel/symbol_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proc, arg_names) ⇒ SymbolDetail

Returns a new instance of SymbolDetail.



6
7
8
9
# File 'lib/introhive_expression_language/iel/symbol_detail.rb', line 6

def initialize(proc, arg_names)
  @proc = proc
  @arg_names = arg_names
end

Instance Attribute Details

#arg_namesObject (readonly)

Returns the value of attribute arg_names.



4
5
6
# File 'lib/introhive_expression_language/iel/symbol_detail.rb', line 4

def arg_names
  @arg_names
end

#procObject (readonly)

Returns the value of attribute proc.



4
5
6
# File 'lib/introhive_expression_language/iel/symbol_detail.rb', line 4

def proc
  @proc
end

Instance Method Details

#invoke(eval_context) ⇒ Object



11
12
13
# File 'lib/introhive_expression_language/iel/symbol_detail.rb', line 11

def invoke(eval_context)
  @proc.call(eval_context)
end