Class: GoonModelGen::Source::Type

Inherits:
Object
  • Object
show all
Includes:
Contextual
Defined in:
lib/goon_model_gen/source/type.rb

Direct Known Subclasses

Enum, NamedSlice, Struct

Instance Attribute Summary collapse

Attributes included from Contextual

#context

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Type

Returns a new instance of Type.

Parameters:

  • name (string)


15
16
17
# File 'lib/goon_model_gen/source/type.rb', line 15

def initialize(name)
  @name = name
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



11
12
13
# File 'lib/goon_model_gen/source/type.rb', line 11

def file
  @file
end

#generatorsObject

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

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/goon_model_gen/source/type.rb', line 10

def name
  @name
end