Class: Plumb::AnyClass
Instance Method Summary
collapse
Methods included from Composable
#[], #as_node, #build, #check, #children, #defer, #generate, included, #invalid, #invoke, #match, #metadata, #not, #pipeline, #policy, #static, #to_json_schema, #to_s, #transform, #value, wrap
Methods included from Callable
#parse, #resolve
Instance Method Details
#>>(other) ⇒ Object
10
|
# File 'lib/plumb/any_class.rb', line 10
def >>(other) = Composable.wrap(other)
|
#call(result) ⇒ Object
17
|
# File 'lib/plumb/any_class.rb', line 17
def call(result) = result
|
#default ⇒ Object
Any.default(value) must trigger default when value is Undefined
13
14
15
|
# File 'lib/plumb/any_class.rb', line 13
def default(...)
Types::Undefined.not.default(...)
end
|
#|(other) ⇒ Object
9
|
# File 'lib/plumb/any_class.rb', line 9
def |(other) = Composable.wrap(other)
|