Class: FinchAPI::Internal::Type::Unknown Abstract Private
- Inherits:
-
Object
- Object
- FinchAPI::Internal::Type::Unknown
- Extended by:
- Converter
- Defined in:
- lib/finch_api/internal/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.
This class is abstract.
When we don’t know what to expect for the value.
Class Method Summary collapse
- .==(other) ⇒ Boolean
- .===(other) ⇒ Boolean
- .coerce(value, state:) ⇒ Object private
- .dump(value, state: ) ⇒ Object private
Methods included from Converter
coerce, dump, inspect, inspect, type_info
Methods included from Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!
Class Method Details
.==(other) ⇒ Boolean
30 |
# File 'lib/finch_api/internal/type/unknown.rb', line 30 def self.==(other) = other.is_a?(Class) && other <= FinchAPI::Internal::Type::Unknown |
.===(other) ⇒ Boolean
23 |
# File 'lib/finch_api/internal/type/unknown.rb', line 23 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.
46 47 48 49 |
# File 'lib/finch_api/internal/type/unknown.rb', line 46 def coerce(value, state:) state.fetch(:exactness)[:yes] += 1 value end |
.dump(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.
|
|
# File 'lib/finch_api/internal/type/unknown.rb', line 51
|