Method: Object#and
- Defined in:
- lib/multiarray.rb
#and(other) ⇒ FalseClass, TrueClass
Boolean ‘and’ operation
130 131 132 133 134 135 136 137 |
# File 'lib/multiarray.rb', line 130 def and( other ) unless other.matched? other else x, y = other.coerce self x.and y end end |