Class: Platform::IEL::SymbolDetail
- Inherits:
-
Object
- Object
- Platform::IEL::SymbolDetail
- Defined in:
- lib/introhive_expression_language/iel/symbol_detail.rb
Instance Attribute Summary collapse
-
#arg_names ⇒ Object
readonly
Returns the value of attribute arg_names.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(proc, arg_names) ⇒ SymbolDetail
constructor
A new instance of SymbolDetail.
- #invoke(eval_context) ⇒ Object
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_names ⇒ Object (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 |
#proc ⇒ Object (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 |