class Dslable::Generators::Settings::Gemfile
Constants
- GEMFILE_TEMPLATE
Attributes
dsl[RW]
Public Class Methods
new(_dsl)
click to toggle source
== initialize dsl model === Params
-
_dsl: input from dsl
# File lib/generators/settings/gemfile.rb, line 24 def initialize(_dsl) fail InvalidDslError.new('dsl not allow nil') if _dsl.nil? @dsl = _dsl end
Public Instance Methods
generate()
click to toggle source
# File lib/generators/settings/gemfile.rb, line 29 def generate File.open('./Gemfile', 'w') { |f|f.puts GEMFILE_TEMPLATE } end