Class: GoonModelGen::Golang::Sentence

Inherits:
Object
  • Object
show all
Defined in:
lib/goon_model_gen/golang/sentence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_path, type) ⇒ Sentence

Returns a new instance of Sentence.

Parameters:

  • template_path (string)
  • type (Type)


11
12
13
14
# File 'lib/goon_model_gen/golang/sentence.rb', line 11

def initialize(template_path, type)
  @template_path = template_path
  @type = type
end

Instance Attribute Details

#template_pathObject (readonly)

Returns the value of attribute template_path.



6
7
8
# File 'lib/goon_model_gen/golang/sentence.rb', line 6

def template_path
  @template_path
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/goon_model_gen/golang/sentence.rb', line 7

def type
  @type
end