Class: Smoke::Source::Join

Inherits:
Origin show all
Defined in:
lib/smoke/source/join.rb

Overview

The “Joiner” source is a special source that can be used to join multiple sources together and proxy call dispatch for each source

Usage:

Smoke.join(:delicious, :twitter, :flickr) do
  path :photos, :photo
end

Instance Attribute Summary

Attributes inherited from Origin

#items, #name

Instance Method Summary collapse

Methods inherited from Origin

#discard, #emit, #insert, #keep, #method_missing, #output, #path, #prepare, #rename, #reverse, #sort, #transform, #truncate

Constructor Details

#initialize(names, &block) ⇒ Join

:nodoc:



12
13
14
15
# File 'lib/smoke/source/join.rb', line 12

def initialize(names, &block)
  @names = names
  super((names << "joined").join("_").to_sym, &block)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Smoke::Origin