Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/goby/extension.rb

Overview

Provides additional methods for Array.

Instance Method Summary collapse

Instance Method Details

#nonempty?Boolean

Returns true iff the array is not empty.

Returns:

  • (Boolean)


6
7
8
# File 'lib/goby/extension.rb', line 6

def nonempty?
  return !empty?
end