Skip to content

Instantly share code, notes, and snippets.

@powellnathanj
Forked from krazylegz/gist:2631270
Created May 7, 2012 23:11
Show Gist options
  • Save powellnathanj/2631291 to your computer and use it in GitHub Desktop.
Save powellnathanj/2631291 to your computer and use it in GitHub Desktop.
[root@cramp ~]# cat wtf.rb
#!/usr/bin/ruby
why_the_fuck_not = 'srsly'
def wut(something)
puts why_the_fuck_not
end
wut "heh"
[root@cramp ~]# ./wtf.rb
./wtf.rb:6:in `wut': undefined local variable or method `why_the_fuck_not' for main:Object (NameError)
from ./wtf.rb:9
@powellnathanj
Copy link
Author

[root@cramp ~]# cat wtf.rb

!/usr/bin/ruby

Why_the_fuck_not = 'srsly'

def wut(something)
puts Why_the_fuck_not
end

wut "heh"
[root@cramp ~]# ./wtf.rb
srsly

@powellnathanj
Copy link
Author

fml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment