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
38 39 40 |
# File 'lib/sinclair/options_parser.rb', line 38 def @options end |
Instance Method Details
#options_object ⇒ OpenStruct
Builds an openstruct of the Hash
46 47 48 |
# File 'lib/sinclair/options_parser.rb', line 46 def @options_object ||= OpenStruct.new end |