module Typed
Constants
- Boolean
- Date
- Float
- Int
- String
- Time
- URL
- UUID
- VERSION
Public Class Methods
any()
click to toggle source
# File lib/typed.rb, line 22 def any self end
array(element_type = Typed.any)
click to toggle source
# File lib/typed.rb, line 16 def array(element_type = Typed.any) expected_type(element_type) Typed::Builder::ArrayType.new(element_type) end
null()
click to toggle source
# File lib/typed.rb, line 26 def null value(nil) end
value(expected_value)
click to toggle source
# File lib/typed.rb, line 30 def value(expected_value) constrained(eql: call(expected_value)) end