Module: Fairy::Interface

Defined in:
lib/fairy/client/barrier.rb

Instance Method Summary collapse

Instance Method Details

#barrier(opts = nil) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/fairy/client/barrier.rb', line 12

def barrier(opts = nil)
  if opts[:cond].kind_of?(String)
    opts[:cond] = BlockSource.new(opts[:cond])
  end
  barrier = Barrier.new(@fairy, opts)
  barrier.input = self
  barrier
end