× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Multi-line vs. Single-line Blocks in Ruby

<pre><code class="language-ruby"># multi-line block # uses "do" and "end" to delineate the content of the block collection.each do |var| # block content goes here... end # single-line block # uses brackets to delineate the content of the block collection.each { |var| # block content goes here... }</code></pre><p> </p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus