Module: HasOptions
- Included in:
- Section
- Defined in:
- lib/has_options.rb
Overview
TODO allow a :type option and typecast the value
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/has_options.rb', line 5 def included(base) base.class_eval do extend ClassMethods class_attribute :option_definitions self.option_definitions = {} serialize :options end end |