Class: BuPr::Command
- Inherits:
-
Object
- Object
- BuPr::Command
- Defined in:
- lib/bu_pr/command.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Class Method Summary collapse
-
.start(args) ⇒ Object
Entry Point.
Instance Method Summary collapse
-
#initialize(args) ⇒ Command
constructor
A new instance of Command.
- #parse ⇒ Hash<Symbol, String>
Constructor Details
#initialize(args) ⇒ Command
Returns a new instance of Command.
19 20 21 22 |
# File 'lib/bu_pr/command.rb', line 19 def initialize args @args = args @opts = {} end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
15 16 17 |
# File 'lib/bu_pr/command.rb', line 15 def args @args end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
16 17 18 |
# File 'lib/bu_pr/command.rb', line 16 def opts @opts end |
Class Method Details
Instance Method Details
#parse ⇒ Hash<Symbol, String>
25 26 27 28 |
# File 'lib/bu_pr/command.rb', line 25 def parse parser.parse! args opts end |