Method: Faye::Channel::Tree#each
- Defined in:
- lib/faye/protocol/channel.rb
#each(prefix = []) {|prefix, @value| ... } ⇒ Object
69 70 71 72 |
# File 'lib/faye/protocol/channel.rb', line 69 def each(prefix = [], &block) each_child { |path, subtree| subtree.each(prefix + [path], &block) } yield(prefix, @value) unless @value.nil? end |