Module: HasOptionMethods::ClassMethods
- Defined in:
- lib/gpm/has_option_methods.rb
Instance Method Summary collapse
Instance Method Details
#option_method(name, default_value = nil) ⇒ Object
4 5 6 7 8 |
# File 'lib/gpm/has_option_methods.rb', line 4 def option_method(name, default_value = nil) define_method name do [name.to_sym] || default_value end end |