Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/corefoundation/extensions.rb
Overview
Ruby array class
Instance Method Summary collapse
-
#to_cf ⇒ CF::Number
Converts the Array to an immutable CF::Array by calling ‘to_cf` on each element it contains.
Instance Method Details
#to_cf ⇒ CF::Number
Converts the Array to an immutable CF::Array by calling ‘to_cf` on each element it contains
23 24 25 |
# File 'lib/corefoundation/extensions.rb', line 23 def to_cf CF::Array.immutable(collect(&:to_cf)) end |