Module: Soltius::Utils::Array
- Defined in:
- lib/soltius/utils/array.rb
Instance Method Summary collapse
-
#len(arr) ⇒ Object
– Helper Function: len.
Instance Method Details
#len(arr) ⇒ Object
– Helper Function: len
Return the length of an Array. Zero if array is nil
10 11 12 13 14 15 16 |
# File 'lib/soltius/utils/array.rb', line 10 def len(arr) begin arr.length rescue 0 end end |