Sha256: ae52b01187755dcedb66fc5fac5d8c20ee131acdc4ae9405c2a47deab2c77037

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

require_relative "project_generator"

module Foobara
  module Generators
    module EmptyRubyProjectGenerator
      module Generators
        class InitialModuleGenerator < ProjectGenerator
          def template_path
            ["src", "initial_module.rb.erb"]
          end

          def target_path
            *path, file = full_project_path.map { |part| Util.underscore(part) }

            file = "#{file}.rb"

            ["src", *path, file]
          end

          def module_path
            full_project_path
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foobara-empty-ruby-project-generator-0.0.11 src/generators/initial_module_generator.rb