Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

ruby-goto

ruby-goto, version –1.0, by Ryan Pavlik

‘goto’ for ruby. :-)

  • Category: Library/Evil
  • Status: squishy
  • Created: 2003-06-06 05:06:14 GMT

Description

This is a simple label-based goto for ruby. Just to show that it can be done.

Also to show that even though ruby may support certain features, even features that may be terribly abusable, does not mean that everyone will, in fact, terribly abuse them. ;-)

Example

require'goto'frame_startlabel(:a)doputs"a"endlabel(:b)doputs"b"goto:aifrand > 0.1endframe_end

License

GPL

About

‘goto’ for ruby. :-)

Resources

Stars

31 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages