Module: Fairy::Map::Interface
- Defined in:
- lib/fairy/client/map.rb
Instance Method Summary collapse
- #map(block_source, opts = nil) ⇒ Object (also: #collect)
Instance Method Details
#map(block_source, opts = nil) ⇒ Object Also known as: collect
13 14 15 16 17 18 19 |
# File 'lib/fairy/client/map.rb', line 13 def map(block_source, opts = nil) ERR::Raise ERR::CantAcceptBlock if block_given? block_source = BlockSource.new(block_source) mapper = Map.new(@fairy, opts, block_source) mapper.input = self mapper end |