Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-band/core/type/utils.rb

Instance Method Summary collapse

Instance Method Details

#is_2d?Boolean

Returns:

  • (Boolean)


25
26
27
28
29
30
# File 'lib/ruby-band/core/type/utils.rb', line 25

def is_2d?
  self.each do |item|
    return true if item.is_a? Array 
  end
  return false
end