Module: Disposable::Twin::Option::ClassMethods

Defined in:
lib/disposable/twin/option.rb

Instance Method Summary collapse

Instance Method Details

#option(name, options = {}) ⇒ Object



7
8
9
10
# File 'lib/disposable/twin/option.rb', line 7

def option(name, options={})
  # default: nil will always set an option in the, even when not in the incoming options.
  property(name, options.merge(:readable => false, :default => nil))
end