Class: Sincli::Generators::Base

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/sincli/generators/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
14
# File 'lib/sincli/generators/base.rb', line 9

def initialize(name, options)
  @name = name
  @options = options
  self.destination_root = Dir.pwd
  self.behavior = :invoke
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/sincli/generators/base.rb', line 7

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/sincli/generators/base.rb', line 7

def options
  @options
end