> #if you actually need an end, that's allowed too
> #(if not further outdented than the line that started the statement)
> result = case ARGV[0]
>         when /^\d*$/
>           p "That's an integer!"
>         when /^[A-Za-z]*$/
>           p "That's a word!"
>         else
>           p "That's something that's not an integer or a word..."
> end if ARGV[0]
> 
> #you can explicitly end just the last scope of something deeply nested.
> class A
>   class B
>     class C
>       module D
>         foo
> end #actually 4 ends


I assume that that end is optional, too?
end also doubles as the equivalent for Python's "pass", as well?
So you can have ends if you want them but they're optional?  Does it 
work with {}'s too?
So the basic rule it uses is that if something returns to the original 
indentation level without being an end, it assumes it should have been 
an end, is that right? (i.e. it *requires* blocks to be at a greater 
indentation level).
Thanks just wondering.
-=r
-- 
Posted via http://www.ruby-forum.com/.