Class: GrapeBootstrap::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/grape_bootstrap/commands/base.rb

Direct Known Subclasses

AppInit, Generate

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, options = []) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
# File 'lib/grape_bootstrap/commands/base.rb', line 6

def initialize path, options=[]
  if path.nil?
    throw "Path not specified"
  end
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/grape_bootstrap/commands/base.rb', line 4

def path
  @path
end