Skip to content
Poignant Guide Ruby Q&A
Sections

do-end

1 thread tagged with this topic

Threads tagged do-end

  1. •

    Why do do...end and curly braces behave differently with method arguments?

    I was sure do ... end and { ... } were two spellings of the same thing, like begin/end and braces in C. Then this happened in a script for my data structures...

    2replies
Poignant Guide Ruby Q&A. Questions and answers on learning Ruby and programming: syntax, blocks, objects, gems, Rails, debugging and reading the Poignant Guide.