Class: ROM::Configurable::Constructors::Inherit
- Defined in:
- lib/rom/support/configurable.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/rom/support/configurable.rb', line 151 def call(*args) super { |left, right| case left when nil then right when Hash then right.merge(left) when Array then (right.map(&:dup) + left.map(&:dup)).uniq else left end } end |