Class: MetaCL::Templates::Aggregator
- Inherits:
-
Mustache
- Object
- Mustache
- MetaCL::Templates::Aggregator
- Defined in:
- lib/metacl/templates/aggregator.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#iterator ⇒ Object
readonly
Returns the value of attribute iterator.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#subresult_var ⇒ Object
readonly
Returns the value of attribute subresult_var.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#var ⇒ Object
readonly
Returns the value of attribute var.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def code @code end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def from @from end |
#iterator ⇒ Object (readonly)
Returns the value of attribute iterator.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def iterator @iterator end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def operator @operator end |
#subresult_var ⇒ Object (readonly)
Returns the value of attribute subresult_var.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def subresult_var @subresult_var end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def to @to end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def type @type end |
#var ⇒ Object (readonly)
Returns the value of attribute var.
4 5 6 |
# File 'lib/metacl/templates/aggregator.rb', line 4 def var @var end |
Instance Method Details
#render(platform, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/metacl/templates/aggregator.rb', line 6 def render(platform, = {}) @type, @var, @iterator, @from, @to, @subresult_var, @operator, @code = .values_at(:type, :var, :iterator, :from, :to, :subresult_var, :operator, :code) @code = Utils.tab_text(@code) super IO.read("#{__dir__}/aggregator.any.template") end |