Class: Pah::Commands::Base

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

Direct Known Subclasses

App, Help, Version

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/pah/commands/base.rb', line 7

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/pah/commands/base.rb', line 5

def options
  @options
end

Instance Method Details

#run(argv) ⇒ Object



11
12
13
# File 'lib/pah/commands/base.rb', line 11

def run(argv)
  raise "#{self.class} subclasses should implement the #run method"
end