Class: GoonModelGen::Source::NamedSlice

Inherits:
Type
  • Object
show all
Defined in:
lib/goon_model_gen/source/named_slice.rb

Instance Attribute Summary collapse

Attributes inherited from Type

#file, #generators, #name

Attributes included from Contextual

#context

Instance Method Summary collapse

Constructor Details

#initialize(name, base_type_name) ⇒ NamedSlice

Returns a new instance of NamedSlice.

Parameters:

  • name (String)
  • base_type (String)


12
13
14
15
# File 'lib/goon_model_gen/source/named_slice.rb', line 12

def initialize(name, base_type_name)
  super(name)
  @base_type_name = base_type_name
end

Instance Attribute Details

#base_type_nameObject (readonly)

Returns the value of attribute base_type_name.



8
9
10
# File 'lib/goon_model_gen/source/named_slice.rb', line 8

def base_type_name
  @base_type_name
end