Skip to content

Instantly share code, notes, and snippets.

@banister
Created December 8, 2008 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banister/33450 to your computer and use it in GitHub Desktop.
Save banister/33450 to your computer and use it in GitHub Desktop.
def check_bounds
if @y > Common::SCREEN_Y*3 || @y < -Common::SCREEN_Y || @x >Common::SCREEN_ X*3 || @x < -Common::SCREEN_X then
@expired = true
end
end
this error:
/usr/bin/ruby -w /home/john/ruby/tremolo/base_classes.rb
/home/john/ruby/tremolo/base_classes.rb:90: syntax error, unexpected tCONSTANT, expecting '('
if @y > Common::SCREEN_Y*3 || @y < -Common::SCREEN_Y || @x >Common::SCREEN_ X*3 || @x < -Common::SCREEN_X then
^
/home/john/ruby/tremolo/base_classes.rb:90: syntax error, unexpected kTHEN, expecting kEND
/home/john/ruby/tremolo/base_classes.rb:133: syntax error, unexpected kEND, expecting $end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment