2008-10-25 11:15:24 -04:00
|
|
|
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
2012-11-14 23:22:44 -05:00
|
|
|
.Dd November 7, 2012
|
2008-10-25 11:15:24 -04:00
|
|
|
.Dt GORUBY(1) "" "Ruby Programmers Reference Guide"
|
|
|
|
.Os UNIX
|
|
|
|
.Sh NAME
|
|
|
|
.Nm goruby
|
2012-11-14 23:22:44 -05:00
|
|
|
.Nd A code-golfer's best friend
|
2008-10-25 11:15:24 -04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op options ...
|
|
|
|
.Op Fl -
|
|
|
|
.Op Ar program_file
|
|
|
|
.Op Ar argument ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Sy goruby
|
2008-11-30 04:48:30 -05:00
|
|
|
is a kind of Ruby language processor
|
2012-11-14 23:22:44 -05:00
|
|
|
which recognizes extremely shortened programs as below:
|
2008-10-25 11:15:24 -04:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
rq"date";s De.td
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2012-11-14 23:22:44 -05:00
|
|
|
Which means:
|
2008-10-25 11:15:24 -04:00
|
|
|
.Bd -literal -offset indent
|
|
|
|
require"date";puts Date.today
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Sy goruby
|
|
|
|
takes same options as
|
|
|
|
.Xr ruby 1 .
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Bl -hang -compact -width "ruby(1)"
|
|
|
|
.It Xr ruby 1
|
|
|
|
The stiff version of Ruby interpreter.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.Sh AUTHORS
|
2012-11-14 23:22:44 -05:00
|
|
|
Originally written by Nobuyoshi Nakada and developed by the
|
2008-10-25 11:15:24 -04:00
|
|
|
Ruby core team.
|