Class: Rawbotz::OptionParser

Inherits:
OptionParser
  • Object
show all
Defined in:
lib/rawbotz/option_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|_self, @options| ... } ⇒ OptionParser

Returns a new instance of OptionParser.

Yields:

Yield Parameters:



7
8
9
10
11
12
# File 'lib/rawbotz/option_parser.rb', line 7

def initialize(*args)
  @options = {}
  super *args
  default_options!
  yield(self, @options) if block_given?
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/rawbotz/option_parser.rb', line 5

def options
  @options
end