class Proforma::Modeling::Text

Emit and render basic text against a record.

Attributes

value[W]

Public Class Methods

new(value: '') click to toggle source
# File lib/proforma/modeling/text.rb, line 22
def initialize(value: '')
  @value = value
end

Public Instance Methods

compile(data, evaluator) click to toggle source
# File lib/proforma/modeling/text.rb, line 30
def compile(data, evaluator)
  self.class.new(
    value: evaluator.text(data, value)
  )
end
value() click to toggle source
# File lib/proforma/modeling/text.rb, line 26
def value
  @value.to_s
end