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

Version Path
goon_model_gen-0.4.3 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.4.2 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.4.1 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.4.0 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.3.1 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.3.0 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.5 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.4 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.3 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.2 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.1 lib/goon_model_gen/golang/file.rb
goon_model_gen-0.2.0 lib/goon_model_gen/golang/file.rb