ruby-standard-library
Installation
SKILL.md
Ruby Standard Library
Master Ruby's rich standard library. Ruby comes with powerful built-in classes and modules that handle common programming tasks elegantly.
Enumerable
The Enumerable module provides iteration methods for collections.
Common Enumerable Methods
numbers = [1, 2, 3, 4, 5]
# map/collect - Transform elements
numbers.map { |n| n * 2 } # [2, 4, 6, 8, 10]
numbers.map(&:to_s) # ["1", "2", "3", "4", "5"]