Class: FinchAPI::Type::Unknown Abstract Private
- Inherits:
-
Object
- Object
- FinchAPI::Type::Unknown
- Extended by:
- Converter
- Defined in:
- lib/finch-api/type/unknown.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
When we don’t know what to expect for the value.
Class Method Summary collapse
- .==(other) ⇒ Boolean private
- .===(other) ⇒ Boolean private
- .coerce(value, state:) ⇒ Object private
- .dump(value) ⇒ Object private
Methods included from Converter
Class Method Details
.==(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 |
# File 'lib/finch-api/type/unknown.rb', line 23 def self.==(other) = other.is_a?(Class) && other <= FinchAPI::Unknown |
.===(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 |
# File 'lib/finch-api/type/unknown.rb', line 18 def self.===(other) = true |
.coerce(value, state:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 |
# File 'lib/finch-api/type/unknown.rb', line 39 def coerce(value, state:) state.fetch(:exactness)[:yes] += 1 value end |
.dump(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 |
# File 'lib/finch-api/type/unknown.rb', line 6 def dump(value) = super |