Method: T::Enum.deserialize
- Defined in:
- lib/sorbet/eraser/t/enum.rb
.deserialize(mongo_value) ⇒ Object
Note: Failed CriticalMethodsNoRuntimeTypingTest
71 72 73 74 75 76 |
# File 'lib/sorbet/eraser/t/enum.rb', line 71 def self.deserialize(mongo_value) if self == T::Enum raise "Cannot call T::Enum.deserialize directly. You must call on a specific child class." end self.from_serialized(mongo_value) end |