class Adhearsion::Plugin::Collection

Public Instance Methods

+(other) click to toggle source
# File lib/adhearsion/plugin/collection.rb, line 16
def +(other)
  Collection.new(to_a + other.to_a)
end
tsort_each_child(child, &block) click to toggle source
# File lib/adhearsion/plugin/collection.rb, line 12
def tsort_each_child(child, &block)
  select { |i| i.before == child.name || i.name == child.after }.each(&block)
end