Method: ToSpreadsheet::Context#merge

Defined in:
lib/to_spreadsheet/context.rb

#merge(other_context) ⇒ Object

A new context



107
108
109
110
111
# File 'lib/to_spreadsheet/context.rb', line 107

def merge(other_context)
  ctx       = Context.new()
  ctx.rules = rules + other_context.rules
  ctx
end