Sha256: 91ce43882ad62df05324fa75dabc102f010b85e1d408b92de05014c5e4cf98b2
Contents?: true
Size: 222 Bytes
Versions: 3
Compression:
Stored size: 222 Bytes
Contents
class CypherBuilder::Context def initialize(context = []) @parents = context end def add(part) Context.new([part] + @parents) end def ancestor?(a_class) @parents.find { |p| a_class === p } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cypher_builder-0.0.5 | lib/cypher_builder/infra/context.rb |
cypher_builder-0.0.4 | lib/cypher_builder/infra/context.rb |
cypher_builder-0.0.3 | lib/cypher_builder/context.rb |