Module: Sinclair::OptionsParser
- Included in:
- Sinclair, MethodDefinition
- Defined in:
- lib/sinclair/options_parser.rb
Overview
Concern for easily adding options
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Options hash.
Instance Method Summary collapse
-
#options_object ⇒ OpenStruct
Builds an openstruct of the Hash.
Instance Attribute Details
#options ⇒ Hash (readonly)
Options hash
40 41 42 |
# File 'lib/sinclair/options_parser.rb', line 40 def @options end |
Instance Method Details
#options_object ⇒ OpenStruct
Builds an openstruct of the Hash
48 49 50 |
# File 'lib/sinclair/options_parser.rb', line 48 def @options_object ||= OpenStruct.new end |