Method: LemonGraph::NodeMap#==

Defined in:
ext/lemongraph/node_map.cc

#==(other) ⇒ Boolean

Returns true if other is a NodeMap and share the same graph, default value and proc as self and and all entries from other and self are equal (==).

Returns:

  • (Boolean)


992
993
994
995
996
997
998
999
# File 'ext/lemongraph/node_map.cc', line 992

VALUE lemongraph_nodemap_is_equal(VALUE self, VALUE other)
{
  if (rb_obj_is_kind_of(other, c_NodeMap) != Qtrue)
    return Qfalse;
  LemonGraph::NodeMap& m = lemongraph_nodemap_rb2ref(self);
  LemonGraph::NodeMap& o = lemongraph_nodemap_rb2ref(other);
  return o.is_equal(m) ? Qtrue : Qfalse;
}