Module: OMQ::Ractor::TransparentDelegator

Overview

Mixed into all connection wrappers so is_a? checks against the wrapped class (e.g. Pipe) still work.

Instance Method Summary collapse

Instance Method Details

#is_a?(klass) ⇒ Boolean Also known as: kind_of?

Returns true if self or the wrapped object is_a? klass.

Parameters:

  • klass (Class)

    class to check against

Returns:

  • (Boolean)

    true if self or the wrapped object is_a? klass



51
52
53
# File 'lib/omq/ractor.rb', line 51

def is_a?(klass)
  super || __getobj__.is_a?(klass)
end