Module: Sinclair::OptionsParser
- Extended by:
- ActiveSupport::Concern
- Included in:
- Sinclair, MethodDefinition
- Defined in:
- lib/sinclair/options_parser.rb
Overview
Concern for easily adding options
Instance Attribute Summary collapse
- #options ⇒ Object readonly
Instance Method Summary collapse
-
#options_object ⇒ OpenStruct
Builds an openstruct of the Hash.
Instance Attribute Details
#options ⇒ Object (readonly)
36 37 38 |
# File 'lib/sinclair/options_parser.rb', line 36 def @options end |
Instance Method Details
#options_object ⇒ OpenStruct
Builds an openstruct of the Hash
43 44 45 |
# File 'lib/sinclair/options_parser.rb', line 43 def @options_object ||= OpenStruct.new end |