class Maybe::Nothing
Public Instance Methods
else(&blk)
click to toggle source
# File lib/maybe/nothing.rb, line 13 def else(&blk) blk.() end
get()
click to toggle source
# File lib/maybe/nothing.rb, line 17 def get raise NothingToSeeHere end
method_missing(*)
click to toggle source
# File lib/maybe/nothing.rb, line 29 def method_missing(*) self end
nothing?()
click to toggle source
# File lib/maybe/nothing.rb, line 21 def nothing? true end
something?()
click to toggle source
# File lib/maybe/nothing.rb, line 25 def something? false end