Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/rulebow/core_ext/true_class.rb

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



27
28
29
# File 'lib/rulebow/core_ext/true_class.rb', line 27

def &(other)
  TrueClass === other ? dup : and_without_t(other)
end

#and_without_tObject



20
# File 'lib/rulebow/core_ext/true_class.rb', line 20

alias and_without_t :&

#or_without_tObject



21
# File 'lib/rulebow/core_ext/true_class.rb', line 21

alias or_without_t :|

#|(other) ⇒ Object



23
24
25
# File 'lib/rulebow/core_ext/true_class.rb', line 23

def |(other)
  TrueClass === other ? dup : or_without_t(other)
end