Class: Rpub::Commands::Base
- Inherits:
-
Object
- Object
- Rpub::Commands::Base
- Extended by:
- SubclassTracker
- Defined in:
- lib/rpub/commands/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(options = [], stdout = $stdout) ⇒ Base
constructor
A new instance of Base.
- #invoke ⇒ Object
Methods included from SubclassTracker
each, identifier, inherited, matching
Constructor Details
#initialize(options = [], stdout = $stdout) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/rpub/commands/base.rb', line 8 def initialize( = [], stdout = $stdout) , @stdout = , stdout end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/rpub/commands/base.rb', line 6 def end |
Instance Method Details
#help ⇒ Object
16 17 18 |
# File 'lib/rpub/commands/base.rb', line 16 def help puts parser end |
#invoke ⇒ Object
12 13 14 |
# File 'lib/rpub/commands/base.rb', line 12 def invoke parser.parse!() end |