Class: WIP::Runner::CLI::Parser
- Inherits:
-
Object
- Object
- WIP::Runner::CLI::Parser
- Defined in:
- lib/wip/runner/cli.rb
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(io) ⇒ Parser
constructor
A new instance of Parser.
- #run(args) ⇒ Object
Constructor Details
#initialize(io) ⇒ Parser
Returns a new instance of Parser.
63 64 65 |
# File 'lib/wip/runner/cli.rb', line 63 def initialize(io) @io = io end |
Instance Method Details
#help ⇒ Object
72 73 74 |
# File 'lib/wip/runner/cli.rb', line 72 def help @io.say(.help) end |
#run(args) ⇒ Object
67 68 69 70 |
# File 'lib/wip/runner/cli.rb', line 67 def run(args) return help if args.empty? .parse!(args) end |