Module: Low::ComplexType

Included in:
Types::Status
Defined in:
lib/types/complex_type.rb

Instance Method Summary collapse

Instance Method Details

#match?(value:) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/types/complex_type.rb', line 5

def match?(value:)
  return true if value.instance_of?(self.class) || value.instance_of?(superclass)

  false
end