class TrueClass

We are going to try doing it this way. If i proves a problem we’ll make a special class.

Public Instance Methods

&(other) click to toggle source
# File lib/ergo/core_ext/true_class.rb, line 9
def &(other)
  other
end
empty?() click to toggle source
# File lib/ergo/core_ext/true_class.rb, line 5
def empty?
  false
end
|(other) click to toggle source
# File lib/ergo/core_ext/true_class.rb, line 13
def |(other)
  other
end