Method: Fairy::SegMap::Interface#seg_map

Defined in:
lib/fairy/client/seg-map.rb

#seg_map(block_source, opts = nil) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/fairy/client/seg-map.rb', line 21

def seg_map(block_source, opts = nil)
	ERR::Raise ERR::CantAcceptBlock if block_given?
	block_source = BlockSource.new(block_source) 
	mapper = SegMap.new(@fairy, opts, block_source)
	mapper.input=self
	mapper
end