Method: NilClass#conditional

Defined in:
lib/multiarray.rb

#conditional(a, b) ⇒ Object

Boolean select operation

Parameters:

  • a (Object)

    Object to select if self is neither false nor nil.

  • b (Object)

    Object to select if self is false or nil.

Returns:

See Also:



230
231
232
# File 'lib/multiarray.rb', line 230

def conditional( a, b )
  b
end