2008-10-25 11:15:24 -04:00
|
|
|
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
2018-12-09 20:57:48 -05:00
|
|
|
.Dd April 20, 2017
|
2017-04-20 03:46:22 -04:00
|
|
|
.Dt GORUBY \&1 "Ruby Programmer's Reference Guide"
|
2008-10-25 11:15:24 -04:00
|
|
|
.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.
|