Class: Skim::Command
- Inherits:
-
Object
- Object
- Skim::Command
- Defined in:
- lib/skim/command.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Command
constructor
A new instance of Command.
-
#run ⇒ Object
Run command.
Constructor Details
#initialize(args) ⇒ Command
Returns a new instance of Command.
6 7 8 9 |
# File 'lib/skim/command.rb', line 6 def initialize(args) @args = args @options = {} end |
Instance Method Details
#run ⇒ Object
Run command
12 13 14 15 16 |
# File 'lib/skim/command.rb', line 12 def run @opts = OptionParser.new(&method(:set_opts)) @opts.parse!(@args) process end |