Module: Algebrick::MatcherDelegations

Included in:
ParametrizedType, Type
Defined in:
lib/algebrick/matcher_delegations.rb

Instance Method Summary collapse

Instance Method Details

#!Object



29
30
31
# File 'lib/algebrick/matcher_delegations.rb', line 29

def !
  !to_m
end

#&(other) ⇒ Object



21
22
23
# File 'lib/algebrick/matcher_delegations.rb', line 21

def &(other)
  to_m & other
end

#>(block) ⇒ Object



41
42
43
# File 'lib/algebrick/matcher_delegations.rb', line 41

def >(block)
  to_m > block
end

#>>(block) ⇒ Object



37
38
39
# File 'lib/algebrick/matcher_delegations.rb', line 37

def >>(block)
  to_m >> block
end

#case(&block) ⇒ Object



33
34
35
# File 'lib/algebrick/matcher_delegations.rb', line 33

def case(&block)
  to_m.case &block
end

#|(other) ⇒ Object



25
26
27
# File 'lib/algebrick/matcher_delegations.rb', line 25

def |(other)
  to_m | other
end

#~Object



17
18
19
# File 'lib/algebrick/matcher_delegations.rb', line 17

def ~
  ~to_m
end