
ruby -run -e httpd . -p 8080module Addingclass SomeSpacedef ugly_text<<HERESuch ugly indentationisn't it?HEREendendend
module Addingclass SomeSpacedef beautiful_text<<-HERE.strip_heredocBeautifully indentedisn't it?HEREendendend
printf "super\nsize\nme" | ruby -ne 'puts $_.upcase'
require 'active_support/core_ext'params = {scope: "read, write & profit",url: "http://referralcandy.com"}params.to_query# => "scope=read%2C+write+%26+profit&url=http%3A%2F%2Freferralcandy.com"
require 'rack'query = "url=http%3A%2F%2Freferralcandy.com&scope=read%26profit"Rack::Utils.parse_nested_query(query)# => {"url"=>"http://referralcandy.com", "scope"=>"read&profit"}
loop do beginbooomrescue Exception => e
endend
Exception
NoMemoryError
ScriptError
LoadError
NotImplementedError
SyntaxError
SignalException
Interrupt
StandardError
ArgumentError
IOError
EOFError
IndexError
LocalJumpError
NameError
NoMethodError
RangeError
FloatDomainError
RegexpError
RuntimeError
Timeout::Error
SecurityError
SocketError
SystemCallError
SystemStackError
ThreadError
TypeError
ZeroDivisionError
SystemExit
fatal
beginbooomrescue => eend