Class: Hanzo::Base
- Inherits:
-
Object
- Object
- Hanzo::Base
- Defined in:
- lib/hanzo/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Accessors.
Instance Method Summary collapse
- #extract_argument(index) ⇒ Object
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(args) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 12 |
# File 'lib/hanzo/base.rb', line 6 def initialize(args) @args = args = OptionParser.new initialize_variables initialize_cli end |
Instance Attribute Details
#options ⇒ Object
Accessors
4 5 6 |
# File 'lib/hanzo/base.rb', line 4 def end |
Instance Method Details
#extract_argument(index) ⇒ Object
14 15 16 |
# File 'lib/hanzo/base.rb', line 14 def extract_argument(index) (@args[index] =~ /-/) ? nil : @args[index] end |