DEV Community

Calvin
Calvin

Posted on

1

Reading Snippets [54 => Ruby] πŸ’Ž

Blocks in Ruby (like anonymous functions in JavaScript) do not require a name to operate.

There are a few differences between blocks and methods in Ruby. While methods can run more than once, a block only runs once.

Codecademy Ruby Course

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay