Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/corefoundation/extensions.rb

Overview

Ruby array class

Instance Method Summary collapse

Instance Method Details

#to_cfCF::Number

Converts the Array to an immutable CF::Array by calling ‘to_cf` on each element it contains

Returns:



23
24
25
# File 'lib/corefoundation/extensions.rb', line 23

def to_cf
  CF::Array.immutable(collect(&:to_cf))
end