Module: Fairy::Cat::Interface

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

Instance Method Summary collapse

Instance Method Details

#cat(*others) ⇒ Object

jpb.cat(opts,…,filter,…,opts,…)



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fairy/client/cat.rb', line 13

def cat(*others)
	others, opts = others.partition{|e| e.kind_of?(Filter)}
	if opts.last.kind_of?(Hash)
	  h = opts.pop
	else
	  h = {}
	end
	opts.each{|e| h[e] = true}

	cat = Cat.new(@fairy, h, others)
	cat.input = self
	cat
end