diff options
Diffstat (limited to 'ruby.html.markdown')
| -rw-r--r-- | ruby.html.markdown | 11 | 
1 files changed, 10 insertions, 1 deletions
| diff --git a/ruby.html.markdown b/ruby.html.markdown index d77672ab..3fc2ed2d 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -23,6 +23,15 @@ contributors:  ```ruby  # This is a comment +=begin +This is a multi-line comment. +The beginning line must start with "=begin" +and the ending line must start with "=end". + +You can do this, or start each line in +a multi-line comment with the # character. +=end +  # In Ruby, (almost) everything is an object.  # This includes numbers...  3.class #=> Integer @@ -410,7 +419,7 @@ def guests(&block)  end  # The 'call' method on the Proc is similar to calling 'yield' when a block is  -# present. The arguments passed to 'call' will be forwarded to the block as arugments. +# present. The arguments passed to 'call' will be forwarded to the block as arguments.  guests { |n| "You have #{n} guests." }  # => "You have 4 guests." | 
