Method: YARD::Options#update
- Defined in:
- lib/yard/options.rb
#update(opts) ⇒ self
Updates values from an options hash or options object on this object. All keys passed should be key names defined by attributes on the class.
109 110 111 112 113 114 115 |
# File 'lib/yard/options.rb', line 109 def update(opts) opts = opts.to_hash if Options === opts opts.each do |key, value| self[key] = value end self end |