Class: CTioga::TiogaFuncall
- Inherits:
-
TiogaElement
- Object
- TiogaElement
- CTioga::TiogaFuncall
- Defined in:
- lib/CTioga/elements/base.rb
Overview
A class to represent a small function call to FigureMaker. Can represent basically anything.
Instance Attribute Summary
Attributes inherited from TiogaElement
Instance Method Summary collapse
-
#initialize(symbol, *args) ⇒ TiogaFuncall
constructor
symbol is the symbol to be called, and the remainder will be used as arguments for the call.
- #real_do(f) ⇒ Object
Methods inherited from TiogaElement
Methods included from Log
#identify, #init_logger, #logger, #logger_options, #spawn
Methods included from Debug
#debug_figmaker, #debug_patterns, #debug_puts, #figmaker_options, #test_pattern, #test_pattern_right
Constructor Details
#initialize(symbol, *args) ⇒ TiogaFuncall
symbol is the symbol to be called, and the remainder will be used as arguments for the call.
74 75 76 77 |
# File 'lib/CTioga/elements/base.rb', line 74 def initialize(symbol, *args) @symbol = symbol @args = args end |
Instance Method Details
#real_do(f) ⇒ Object
79 80 81 |
# File 'lib/CTioga/elements/base.rb', line 79 def real_do(f) f.send(@symbol, *@args) end |