# 49 methods for the price of one
# via @sferik
module Enumerable
# block & yield syntax
# via @_ZPH
def thing
yield if block_given?
end
def thing_with_name name, &block
block.yield(name)
end
# hash with default value block
# via @kevincbaird
Hash.new do |h,k|
h[k] = functional_thing(k)
end
# #chomp
# via @sinthetix
"hello\r\n".chomp
Rake via @avdi
original dRuby via @m_seki
Minitest via @_ZPH
Sass via @jackyalcine
OAuth2 via @comaddox
Exercism.io via @geeksam
Capp via @drbrain
Axiom via @_m_b_j_
'I generally judge the quality of a codebase by the quality of its README and the inline documentation.' via @copiousfreetime
Programming with Procs, (repo)
Programming without Alphanumerics, (repo)
both via @wobher
via @geeksam
gem install rubyhop
rubyhop
via @blowmage
gist.github.com/joshsusser/2646288
via @sferik
gist.github.com/davidcelis/2831543
* for some definition of pretty ;)
via @davidcelis
It's Ben's special string
via @bleything and @wobher
via @1337807