module Tsuga::Adapter::Memory::Cluster::ClassMethods

Public Instance Methods

at_depth(depth) click to toggle source
# File lib/tsuga/adapter/memory/cluster.rb, line 23
def at_depth(depth)
  scoped(lambda { |r| r.depth == depth })
end
in_tile(*tiles) click to toggle source
# File lib/tsuga/adapter/memory/cluster.rb, line 27
def in_tile(*tiles)
  scoped(lambda { |r| tiles.any? { |t| (t.depth == r.depth) && t.contains?(r) } })
end