Skip to content

Instantly share code, notes, and snippets.

@scalone
Forked from vinibaggio/gist:1727086
Created February 3, 2012 01:37
Show Gist options
  • Save scalone/1727097 to your computer and use it in GitHub Desktop.
Save scalone/1727097 to your computer and use it in GitHub Desktop.
blocos malucos
p bloco = -> {
vai_danada = 1
def m
puts "AAAAAAA"
vai_danada += 1
end
vai_danada = 5
}.()
defined? vai_danada
p m # => AAAAAAAAAA e depois "`+' for nil:NilClass"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment