Method: Cuboid::Options#update
- Defined in:
- lib/cuboid/options.rb
#update(options) ⇒ Options Also known as: set
Configures options via a Hash object.
127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/cuboid/options.rb', line 127 def update( ) .each do |k, v| k = k.to_sym if group_classes.include? k send( k ).update v else send( "#{k.to_s}=", v ) end end self end |