Method: YARD::CodeObjects::Base#equal?

Defined in:
lib/yard/code_objects/base.rb

#equal?(other) ⇒ Boolean Also known as: ==, eql?

Tests if another object is equal to this, including a proxy

Parameters:

  • other (Base, Proxy)

    if other is a Proxy, tests if the paths are equal

Returns:

  • (Boolean)

    whether or not the objects are considered the same



323
324
325
326
327
328
329
# File 'lib/yard/code_objects/base.rb', line 323

def equal?(other)
  if other.is_a?(Base) || other.is_a?(Proxy)
    path == other.path
  else
    super
  end
end