Class: FalseClass
Overview
FalseClass
is extended with a few methods
Instance Method Summary collapse
-
#and(other) ⇒ FalseClass
Boolean ‘and’ operation.
-
#conditional(a, b) ⇒ Object
Boolean select operation.
-
#not ⇒ FalseClass
Boolean negation.
-
#or(other) ⇒ FalseClass, TrueClass
Boolean ‘or’ operation.
Instance Method Details
#and(other) ⇒ FalseClass
Boolean ‘and’ operation
267 268 269 270 271 272 273 274 |
# File 'lib/multiarray.rb', line 267 def and( other ) unless other.is_a? Hornetseye::Node self else x, y = other.coerce self x.and y end end |
#conditional(a, b) ⇒ Object
Boolean select operation
300 301 302 |
# File 'lib/multiarray.rb', line 300 def conditional( a, b ) b end |
#not ⇒ FalseClass
Boolean negation
256 257 258 |
# File 'lib/multiarray.rb', line 256 def not true end |
#or(other) ⇒ FalseClass, TrueClass
Boolean ‘or’ operation
283 284 285 286 287 288 289 290 |
# File 'lib/multiarray.rb', line 283 def or( other ) unless other.is_a? Hornetseye::Node other else x, y = other.coerce self x.or y end end |