Module: Findarraynumeric
- Included in:
- Array
- Defined in:
- lib/arr.rb
Instance Method Summary collapse
Instance Method Details
#isnumericarray? ⇒ Boolean
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/arr.rb', line 5 def isnumericarray? temp=true self.each do |item| temp=item.is_a?Integer if temp next else break end end return temp end |