Sha256: 6a4122f7c79802a1889fe9a192e89ce7635e9507dd1fab9ed8c3bf7651f1a82d
Contents?: true
Size: 527 Bytes
Versions: 12
Compression:
Stored size: 527 Bytes
Contents
require "goon_model_gen" require "goon_model_gen/golang/sentence" module GoonModelGen module Golang class File attr_reader :name attr_reader :sentences attr_accessor :package attr_accessor :custom_suffix # false/true # @param name [string] def initialize(name) @name = name @sentences = [] end def new_sentence(template_path, type) Sentence.new(template_path, type).tap do |s| sentences.push(s) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems