Class: ROM::Configurable::Constructors::Join
- Defined in:
- lib/rom/support/configurable.rb
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
165 166 167 168 169 170 171 172 173 174 |
# File 'lib/rom/support/configurable.rb', line 165 def call(*args) super { |left, right, direction| case direction when :left then [right, left] when :right then [left, right] else raise ArgumentError, "+#{direction}+ direction is not supported" end.compact.join(".") } end |