Class: XTwitterScraper::Internal::Type::Unknown Abstract Private
- Inherits:
-
Object
- Object
- XTwitterScraper::Internal::Type::Unknown
- Extended by:
- Converter, Util::SorbetRuntimeSupport
- Defined in:
- lib/x_twitter_scraper/internal/type/unknown.rb,
sig/x_twitter_scraper/internal/type/unknown.rbs
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
- .===(other) ⇒ Boolean
-
.coerce(value, state:) ⇒ Object
private
No coercion needed for Unknown type.
- .dump(value, state:) ⇒ Object private
- .to_sorbet_type ⇒ Object private
Methods included from Converter
coerce, dump, inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Util::SorbetRuntimeSupport
const_missing, define_sorbet_constant!, sorbet_constant_defined?, to_sorbet_type
Class Method Details
.==(other) ⇒ Boolean
35 |
# File 'lib/x_twitter_scraper/internal/type/unknown.rb', line 35 def self.==(other) = other.is_a?(Class) && other <= XTwitterScraper::Internal::Type::Unknown |
.===(other) ⇒ Boolean
28 |
# File 'lib/x_twitter_scraper/internal/type/unknown.rb', line 28 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.
No coercion needed for Unknown type.
57 58 59 60 |
# File 'lib/x_twitter_scraper/internal/type/unknown.rb', line 57 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/x_twitter_scraper/internal/type/unknown.rb', line 62
|
.to_sorbet_type ⇒ 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.
76 77 78 |
# File 'lib/x_twitter_scraper/internal/type/unknown.rb', line 76 def to_sorbet_type T.anything end |