Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6190e1e737
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (45 sloc) 1.143 kb
# FUNKY RUBY
begin
puts 'this was'
nah!
rescue Exception => e then puts 'rescued'
else
puts 'not rescued'
ensure
puts 'and ensured'
end
# ----------------------------------------------------------------------------
a = { 1 => 2, 3 => 4 }
a = { 1, 2, 3, 4 }
a = { 1: 2, 3: 4 }
# ----------------------------------------------------------------------------
Foo::Bar :bar
# ----------------------------------------------------------------------------
puts <<stuff.strip + '!', <<too.strip
i can haz stuff
stuff
me too
too
# ----------------------------------------------------------------------------
puts ?a
# ----------------------------------------------------------------------------
BEGIN {
puts 'BEGIN'
}
END {
puts 'END'
}
# ----------------------------------------------------------------------------
puts DATA
__END__
HA!
# ----------------------------------------------------------------------------
foo = []
foo.<< :bar
foo.<=> bar
def foo(*args)
super()
super
end
# ============================================================================
module Foo; def self.Bar(bar); puts bar; end; end
Jump to Line
Something went wrong with that request. Please try again.