Class: Sincli::Generators::Base
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Sincli::Generators::Base
- Includes:
- Thor::Actions
- Defined in:
- lib/sincli/generators/base.rb
Direct Known Subclasses
Assets, Config, Executions, ModelsAndControllers, RootFiles, Views
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options) ⇒ Base
constructor
A new instance of Base.
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, ) @name = name @options = self.destination_root = Dir.pwd self.behavior = :invoke end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/sincli/generators/base.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/sincli/generators/base.rb', line 7 def @options end |