Skip to content

Instantly share code, notes, and snippets.

@mperham
Created July 1, 2009 18:31
Show Gist options
  • Save mperham/138959 to your computer and use it in GitHub Desktop.
Save mperham/138959 to your computer and use it in GitHub Desktop.
>> foo? = 1
SyntaxError: compile error
(irb):1: syntax error, unexpected '=', expecting $end
foo? = 1
^
from (irb):1
>> def foo?
>> 1
>> end
=> nil
>> foo?
=> 1
>> def bar(foo? = 1)
>> nil
>> end
SyntaxError: compile error
(irb):6: syntax error, unexpected tFID, expecting ')'
def bar(foo? = 1)
^
from (irb):6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment