Class: Swift::Boiler::Template
- Inherits:
-
Object
- Object
- Swift::Boiler::Template
- Defined in:
- lib/swift/boiler/template.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#date ⇒ Object
Returns the value of attribute date.
-
#options ⇒ Object
Returns the value of attribute options.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize ⇒ Template
Returns a new instance of Template.
6 7 8 |
# File 'lib/swift/boiler/template.rb', line 6 def initialize @date = Time.now.strftime("%d/%m/%Y") end |
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name.
4 5 6 |
# File 'lib/swift/boiler/template.rb', line 4 def class_name @class_name end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/swift/boiler/template.rb', line 4 def date @date end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/swift/boiler/template.rb', line 4 def @options end |
#properties ⇒ Object
Returns the value of attribute properties.
4 5 6 |
# File 'lib/swift/boiler/template.rb', line 4 def properties @properties end |
#template_path ⇒ Object
Returns the value of attribute template_path.
4 5 6 |
# File 'lib/swift/boiler/template.rb', line 4 def template_path @template_path end |