Sha256: ee1f4200a76db18b3f19e2f3a59ce607aa1447befde309dd5be1a910ea502ba4

Contents?: true

Size: 576 Bytes

Versions: 6

Compression:

Stored size: 576 Bytes

Contents

require "<%= config.gem_name %>/engine"

module <%= config.gem_class %>
  extend self

  # You can add, in this module, your own configuration options as in the example below...
  #
  # attr_writer :my_option
  #
  # def my_option
  #   return "Default Value" unless @my_option
  #   @my_option
  # end
  #
  # Then, you can customize the default behaviour (typically in a Rails initializer) like this:
  #
  # <%= config.gem_class %>.setup do |config|
  #   config.root_url = "Another value"
  # end

  def setup
    yield self
    require "<%= config.gem_name %>"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemaker-1.0.0 lib/gemaker/templates/engine/lib_main_file.rb.erb
gemaker-0.6.0 lib/gemaker/templates/engine/lib_main_file.rb.erb
gemaker-0.5.0 lib/gemaker/templates/engine/lib_main_file.rb.erb
gemaker-0.4.0 lib/gemaker/templates/engine/lib_main_file.rb.erb
gemaker-0.3.0 lib/gemaker/templates/engine/lib_main_file.rb.erb
gemaker-0.2.0 lib/gemaker/templates/engine/lib_main_file.rb.erb