Sha256: 962532b849f7331571de52eaa4ecfdfeea0001db4f6dc78e53a0c201fc005ca0
Contents?: true
Size: 379 Bytes
Versions: 5
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true require 'plumb/composable' module Plumb class AnyClass include Composable def |(other) = Composable.wrap(other) def >>(other) = Composable.wrap(other) # Any.default(value) must trigger default when value is Undefined def default(...) Types::Undefined.not.default(...) end def call(result) = result end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
plumb-0.0.8 | lib/plumb/any_class.rb |
plumb-0.0.7 | lib/plumb/any_class.rb |
plumb-0.0.6 | lib/plumb/any_class.rb |
plumb-0.0.5 | lib/plumb/any_class.rb |
plumb-0.0.4 | lib/plumb/any_class.rb |