Class: Hanzo::Base
- Inherits:
-
Object
- Object
- Hanzo::Base
- Defined in:
- lib/hanzo/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
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.
5 6 7 8 9 10 11 |
# File 'lib/hanzo/base.rb', line 5 def initialize(args) @args = args = OptionParser.new initialize_variables initialize_cli end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/hanzo/base.rb', line 3 def end |
Instance Method Details
#extract_argument(index) ⇒ Object
13 14 15 |
# File 'lib/hanzo/base.rb', line 13 def extract_argument(index) (@args[index] =~ /-/) ? nil : @args[index] end |