ruby-core

Installation
SKILL.md

Ruby Core Language Features

Comprehensive guide to Ruby 3.x core language features, idioms, and best practices.

Blocks, Procs, and Lambdas

Blocks

Blocks are anonymous functions passed to methods:

# Block with do...end (multi-line)
[1, 2, 3].each do |n|
  puts n * 2
end

# Block with braces (single-line, returns value)
doubled = [1, 2, 3].map { |n| n * 2 }
Related skills

More from bastos/ruby-plugin-marketplace

Installs
1
GitHub Stars
2
First Seen
Apr 16, 2026