module Option::None

Public Class Methods

empty?() click to toggle source
# File lib/trither/option.rb, line 51
def self.empty?
  true
end
fetch(default) click to toggle source
# File lib/trither/option.rb, line 61
def self.fetch(default)
  default
end
filter() click to toggle source
# File lib/trither/option.rb, line 56
def self.filter
  self
end
flat_map() click to toggle source
# File lib/trither/option.rb, line 71
def self.flat_map
  self
end
get_or_else() { || ... } click to toggle source
# File lib/trither/option.rb, line 81
def self.get_or_else
  yield
end
map() click to toggle source
# File lib/trither/option.rb, line 66
def self.map
  self
end
or_else() { || ... } click to toggle source
# File lib/trither/option.rb, line 76
def self.or_else
  yield
end