Method: LightServiceObject::Base.option
- Defined in:
- lib/light_service_object.rb
.option(*args, **opts, &block) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/light_service_object.rb', line 49 def option(*args, **opts, &block) if opts.delete(:mutable) name = opts[:as] || args.first self.send("attr_writer", name) end super(*args, **opts, &block) end |