class GoonModelGen::Golang::File
Attributes
custom_suffix[RW]
name[R]
package[RW]
sentences[R]
Public Class Methods
new(name)
click to toggle source
@param name [string]
# File lib/goon_model_gen/golang/file.rb, line 14 def initialize(name) @name = name @sentences = [] end
Public Instance Methods
new_sentence(template_path, type)
click to toggle source
# File lib/goon_model_gen/golang/file.rb, line 19 def new_sentence(template_path, type) Sentence.new(template_path, type).tap do |s| sentences.push(s) end end