Class: MinceMigrator::Migrations::Template
- Inherits:
-
Mustache
- Object
- Mustache
- MinceMigrator::Migrations::Template
- Defined in:
- lib/mince_migrator/migrations/template.rb
Instance Attribute Summary collapse
-
#klass_name ⇒ Object
readonly
Returns the value of attribute klass_name.
-
#time_created ⇒ Object
readonly
Returns the value of attribute time_created.
Instance Method Summary collapse
-
#initialize(klass_name) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(klass_name) ⇒ Template
Returns a new instance of Template.
10 11 12 13 |
# File 'lib/mince_migrator/migrations/template.rb', line 10 def initialize(klass_name) @klass_name = klass_name @time_created = Time.now.utc.to_s end |
Instance Attribute Details
#klass_name ⇒ Object (readonly)
Returns the value of attribute klass_name.
8 9 10 |
# File 'lib/mince_migrator/migrations/template.rb', line 8 def klass_name @klass_name end |
#time_created ⇒ Object (readonly)
Returns the value of attribute time_created.
8 9 10 |
# File 'lib/mince_migrator/migrations/template.rb', line 8 def time_created @time_created end |