Module: OMQ::Ractor::TransparentDelegator
- Included in:
- MarshalConnection, ShareableConnection, TopicMarshalConnection, TopicShareableConnection
- Defined in:
- lib/omq/ractor.rb
Overview
Mixed into all connection wrappers so is_a? checks against the wrapped class (e.g. Pipe) still work.
Instance Method Summary collapse
-
#is_a?(klass) ⇒ Boolean
(also: #kind_of?)
True if self or the wrapped object is_a? klass.
Instance Method Details
#is_a?(klass) ⇒ Boolean Also known as: kind_of?
Returns 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 |