class Judges::Options
def +(other)
- Example: Merge two Options objects -
Returns:
-
(Judges::Options)
- A new Options object with merged values
Parameters:
-
other
(Judges::Options
) -- The other options to merge
def +(other) h = to_h other.to_h.each do |k, v| h[k] = v end Judges::Options.new(h) end