Class: GoonModelGen::Source::Type
- Inherits:
-
Object
- Object
- GoonModelGen::Source::Type
- Includes:
- Contextual
- Defined in:
- lib/goon_model_gen/source/type.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#generators ⇒ Object
key: method_name, value: true|false|string(file_suffix).
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes included from Contextual
Instance Method Summary collapse
-
#initialize(name) ⇒ Type
constructor
A new instance of Type.
Constructor Details
#initialize(name) ⇒ Type
Returns a new instance of Type.
15 16 17 |
# File 'lib/goon_model_gen/source/type.rb', line 15 def initialize(name) @name = name end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
11 12 13 |
# File 'lib/goon_model_gen/source/type.rb', line 11 def file @file end |
#generators ⇒ Object
key: method_name, value: true|false|string(file_suffix)
12 13 14 |
# File 'lib/goon_model_gen/source/type.rb', line 12 def generators @generators end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/goon_model_gen/source/type.rb', line 10 def name @name end |