Sha256: 8a10c752f2ba4d9ae5eae2d5419c28afd4fd548820b710927c0efa62ca6fbc69

Contents?: true

Size: 810 Bytes

Versions: 13

Compression:

Stored size: 810 Bytes

Contents

module TP
  module Person
    def self.route_conditions
      { :type => 'person' }
    end

    module Route
      def projects
        out_e.in_v(Project)
      end
    end
  end


  class Project
    def self.route_conditions
      { :type => 'project' }
    end

    module Route
      def people
        in_e.out_v(Person)
      end
    end
  end

  class Pangloss
    def self.route(base)
      base.v(:name => 'pangloss')
    end
  end

  module Coder
    module Route
      def projects
        out(Project, Software)
      end
    end
  end

  module Software
    module Route
      def coders
        self.in(Coder)
      end
    end
  end

  module Wrote
    def self.route_conditions
      { label: 'wrote' }
    end

    module Edge
      def writer
        out_vertex
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pacer-1.3.5-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.3.4-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.3.3-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.3.2-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.3.1-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.2.0-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.1.1-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.1.0-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.0.3-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.0.2-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.0.1-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-1.0.0-java spec/tackle/tinkerpop_graph_mixins.rb
pacer-0.9.1.1-java spec/tackle/tinkerpop_graph_mixins.rb