Class: TrueClass

Inherits:
Object
  • Object
show all
Includes:
Boolean
Defined in:
lib/ergo/core_ext/true_class.rb,
lib/ergo/core_ext/boolean.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



9
10
11
# File 'lib/ergo/core_ext/true_class.rb', line 9

def &(other)
  other
end

#empty?Boolean

Returns:



5
6
7
# File 'lib/ergo/core_ext/true_class.rb', line 5

def empty?
  false
end

#|(other) ⇒ Object



13
14
15
# File 'lib/ergo/core_ext/true_class.rb', line 13

def |(other)
  other
end