Class: Charming::Generators::ModelGenerator::Field

Inherits:
Data
  • Object
show all
Defined in:
lib/charming/generators/model_generator.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/charming/generators/model_generator.rb', line 6

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/charming/generators/model_generator.rb', line 6

def type
  @type
end