module Ribimaybe::Maybe::Nothing

Ensure constants are available to Ruby contracts.

Public Class Methods

===(other) click to toggle source
# File lib/ribimaybe.rb, line 27
def self.===(other)
  self == other
end
>=(fn = nil, &_)
Alias for: bind
>>(_)
Alias for: apply
apply(_) click to toggle source
# File lib/ribimaybe.rb, line 45
def self.apply(_)
  self
end
Also aliased as: >>
bind(fn = nil, &_) click to toggle source
# File lib/ribimaybe.rb, line 55
def self.bind(fn = nil, &_)
  self
end
Also aliased as: >=
map(&_) click to toggle source
# File lib/ribimaybe.rb, line 39
def self.map(&_)
  self
end
maybe(default, &_) click to toggle source
# File lib/ribimaybe.rb, line 33
def self.maybe(default, &_)
  default
end
to_s() click to toggle source

Nothing string representation.

# File lib/ribimaybe.rb, line 15
def self.to_s
  "Nothing"
end