Module: Fairy::Junction::Interface
- Defined in:
- lib/fairy/client/junction.rb
Instance Method Summary collapse
- #junction(opts = nil, &block) ⇒ Object (also: #sub)
Instance Method Details
#junction(opts = nil, &block) ⇒ Object Also known as: sub
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fairy/client/junction.rb', line 12 def junction(opts = nil, &block) subfairy = Fairy.create_subfairy(@fairy) junction_ps = Junction.new(subfairy, opts) junction_ps.input = self last_filter = yield subfairy, junction_ps junction_sp = Junction.new(@fairy, opts) junction_sp.input = last_filter junction_sp end |