class NoSE::QueryGraph::Node
A single node in a query graph
Attributes
entity[R]
Public Class Methods
new(entity)
click to toggle source
# File lib/nose/query_graph.rb, line 12 def initialize(entity) @entity = entity end
Public Instance Methods
==(other)
click to toggle source
Two nodes are equal if they represent the same entity
# File lib/nose/query_graph.rb, line 23 def ==(other) other.is_a?(Node) && @entity == other.entity end
Also aliased as: eql?
hash()
click to toggle source
# File lib/nose/query_graph.rb, line 28 def hash @entity.name.hash end
inspect()
click to toggle source
:nocov:
# File lib/nose/query_graph.rb, line 17 def inspect @entity.name end