Class: GoonModelGen::Golang::File
- Inherits:
-
Object
- Object
- GoonModelGen::Golang::File
- Defined in:
- lib/goon_model_gen/golang/file.rb
Instance Attribute Summary collapse
-
#custom_suffix ⇒ Object
false/true.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#package ⇒ Object
Returns the value of attribute package.
-
#sentences ⇒ Object
readonly
Returns the value of attribute sentences.
Instance Method Summary collapse
-
#initialize(name) ⇒ File
constructor
A new instance of File.
- #new_sentence(template_path, type) ⇒ Object
Constructor Details
#initialize(name) ⇒ File
Returns a new instance of File.
14 15 16 17 |
# File 'lib/goon_model_gen/golang/file.rb', line 14 def initialize(name) @name = name @sentences = [] end |
Instance Attribute Details
#custom_suffix ⇒ Object
false/true
11 12 13 |
# File 'lib/goon_model_gen/golang/file.rb', line 11 def custom_suffix @custom_suffix end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/goon_model_gen/golang/file.rb', line 8 def name @name end |
#package ⇒ Object
Returns the value of attribute package.
10 11 12 |
# File 'lib/goon_model_gen/golang/file.rb', line 10 def package @package end |
#sentences ⇒ Object (readonly)
Returns the value of attribute sentences.
9 10 11 |
# File 'lib/goon_model_gen/golang/file.rb', line 9 def sentences @sentences end |