Class: Rag::DSL

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/rag/new.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Thor::Actions

#directory2, #template2

Constructor Details

#initialize(template_name, app_path, o = {}) ⇒ DSL

Returns a new instance of DSL.



169
170
171
172
173
# File 'lib/rag/new.rb', line 169

def initialize(template_name, app_path, o={})
  @template_name = template_name
  @app_path = app_path
  @options = o
end

Instance Attribute Details

#app_pathObject (readonly)

Returns the value of attribute app_path.



167
168
169
# File 'lib/rag/new.rb', line 167

def app_path
  @app_path
end

#optionsObject (readonly)

Returns the value of attribute options.



167
168
169
# File 'lib/rag/new.rb', line 167

def options
  @options
end

#template_nameObject (readonly)

Returns the value of attribute template_name.



167
168
169
# File 'lib/rag/new.rb', line 167

def template_name
  @template_name
end