Class: TrueClass

Inherits:
Object
  • Object
show all
Includes:
Boolean
Defined in:
lib/fire/core_ext/true_class.rb,
lib/fire/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/fire/core_ext/true_class.rb', line 9

def &(other)
  other
end

#empty?Boolean

Returns:



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

def empty?
  false
end

#|(other) ⇒ Object



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

def |(other)
  other
end