Sha256: ecd49859e4ba0ff21f0debcdb5b0e7f10def2fa6a65a6f656a72a96218595484

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

require "goon_model_gen"

require "goon_model_gen/golang/sentence"

module GoonModelGen
  module Golang
    class File
      attr_reader :package, :name
      attr_reader :sentences
      attr_accessor :custom_suffix # false/true

      # @param package [Package]
      # @param name [string]
      def initialize(package, name)
        @package = package
        @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

4 entries across 4 versions & 1 rubygems

Version Path
goon_model_gen-0.1.3 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.1.2 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.1.1 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.1.0 lib/goon_model_gen/golang/file.rb