module Typed::Undefined
Undefined
is both:
-
A placeholder used to represent an undefined value.
-
The type used to represent this placeholder.
Public Class Methods
process(value)
click to toggle source
# File lib/typed.rb, line 42 def process(value) if Undefined.equal?(value) Typed::Builder::Result.success(value) else Typed::Builder::Result.failure { 'Expected value undefined' } end end