Method: LazyGraph::PathParser::PathPart#==

Defined in:
lib/lazy_graph/path_parser/path_part.rb

#==(other) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/lazy_graph/path_parser/path_part.rb', line 12

def ==(other)
  return part == other.to_sym if other.is_a?(String)
  return part == other if other.is_a?(Symbol)
  return part == other if other.is_a?(Array)

  super
end