Class: MetaCL::Templates::Prints

Inherits:
Mustache
  • Object
show all
Defined in:
lib/metacl/templates/prints.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stringObject

Returns the value of attribute string.



4
5
6
# File 'lib/metacl/templates/prints.rb', line 4

def string
  @string
end

Instance Method Details

#render(string, platform) ⇒ Object



6
7
8
9
# File 'lib/metacl/templates/prints.rb', line 6

def render(string, platform)
  @string = string
  super IO.read("#{__dir__}/prints.any.template")
end