Class: RuboBot::Options
- Inherits:
-
Object
- Object
- RuboBot::Options
- Defined in:
- lib/rubobot/options.rb
Overview
Parse options passed from the CLI
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(args) ⇒ Options
constructor
A new instance of Options.
- #to_hash ⇒ Object
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_hash ⇒ Object
16 17 18 |
# File 'lib/rubobot/options.rb', line 16 def to_hash parse end |