Class: Skim::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/skim/command.rb

Instance Method Summary collapse

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

#runObject

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