Method: Tap::Support::Join.join
- Defined in:
- lib/tap/support/join.rb
.join(source, targets, &block) ⇒ Object
Create a join between the source and targets. Targets should be an array; if the last member of targets is a hash, it will be used as the configurations for the join.
17 18 19 20 |
# File 'lib/tap/support/join.rb', line 17 def join(source, targets, &block) = targets[-1].kind_of?(Hash) ? targets.pop : {} new().join(source, targets, &block) end |