Class: MinceMigrator::Migrations::Template

Inherits:
Mustache
  • Object
show all
Defined in:
lib/mince_migrator/migrations/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_createdObject (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