Class: CTioga::TiogaFuncall

Inherits:
TiogaElement show all
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

#parent

Instance Method Summary collapse

Methods inherited from TiogaElement

#do, #inspect, #need_style?

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