Class: Formatron::Generators::Instance::Formatronfile::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/formatron/generators/instance/formatronfile.rb

Overview

exports params to bootstrap ERB template

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Template

Returns a new instance of Template.



14
15
16
# File 'lib/formatron/generators/instance/formatronfile.rb', line 14

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



12
13
14
# File 'lib/formatron/generators/instance/formatronfile.rb', line 12

def params
  @params
end

Instance Method Details

#guidObject



18
19
20
# File 'lib/formatron/generators/instance/formatronfile.rb', line 18

def guid
  Util.guid
end