Class: Boiler::Generator::Base

Inherits:
Object
  • Object
show all
Includes:
Chalk::Log
Defined in:
lib/boiler/generator/base.rb

Direct Known Subclasses

Gem, Script, Suite, Thrift, Touchup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, arguments) ⇒ Base

Returns a new instance of Base.



11
12
13
14
# File 'lib/boiler/generator/base.rb', line 11

def initialize(options, arguments)
  @options = options
  @arguments = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



9
10
11
# File 'lib/boiler/generator/base.rb', line 9

def arguments
  @arguments
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/boiler/generator/base.rb', line 9

def options
  @options
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/boiler/generator/base.rb', line 16

def execute
  raise NotImplementedError.new('Override in subclass')
end