Method: YARD::CodeObjects::Base.===

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

.===(other) ⇒ Boolean

Compares the class with subclasses

Parameters:

  • other (Object)

    the other object to compare classes with

Returns:

  • (Boolean)

    true if other is a subclass of self

[View source]

219
220
221
# File 'lib/yard/code_objects/base.rb', line 219

def ===(other)
  other.is_a?(self)
end