Class: Swift::Boiler::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/swift/boiler/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTemplate

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_nameObject

Returns the value of attribute class_name.



4
5
6
# File 'lib/swift/boiler/template.rb', line 4

def class_name
  @class_name
end

#dateObject

Returns the value of attribute date.



4
5
6
# File 'lib/swift/boiler/template.rb', line 4

def date
  @date
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/swift/boiler/template.rb', line 4

def options
  @options
end

#propertiesObject

Returns the value of attribute properties.



4
5
6
# File 'lib/swift/boiler/template.rb', line 4

def properties
  @properties
end

#template_pathObject

Returns the value of attribute template_path.



4
5
6
# File 'lib/swift/boiler/template.rb', line 4

def template_path
  @template_path
end