Class: RuboBot::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/rubobot/options.rb

Overview

Parse options passed from the CLI

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Options

Returns a new instance of Options.



8
9
10
# File 'lib/rubobot/options.rb', line 8

def initialize(args)
  @args = args
end

Instance Method Details

#[](key) ⇒ Object



12
13
14
# File 'lib/rubobot/options.rb', line 12

def [](key)
  parse[key]
end

#to_hashObject



16
17
18
# File 'lib/rubobot/options.rb', line 16

def to_hash
  parse
end