mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* man/irb.1 (EXAMPLES): new section
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2a86c3e86a
commit
56d19a9e8b
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 29 23:56:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* man/irb.1 (EXAMPLES): new section
|
||||
|
||||
Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* regparse.c (is_invalid_quantifier_target): Perl and old Ruby
|
||||
|
|
18
man/irb.1
18
man/irb.1
|
@ -108,6 +108,24 @@ Personal irb initialization.
|
|||
.Pp
|
||||
.El
|
||||
.Pp
|
||||
.Sh EXAMPLES
|
||||
.Dl % irb
|
||||
.Dl irb(main):001:0> Ic 1 + 1
|
||||
.Dl 2
|
||||
.Dl irb(main):002:0> Ic def t(x)
|
||||
.Dl irb(main):003:1> Ic x+1
|
||||
.Dl irb(main):004:1> Ic end
|
||||
.Dl => nil
|
||||
.Dl irb(main):005:0> Ic t(3)
|
||||
.Dl => 4
|
||||
.Dl irb(main):006:0> Ic if t(3) == 4
|
||||
.Dl irb(main):007:1> Ic p :ok
|
||||
.Dl irb(main):008:1> Ic end
|
||||
.Dl :ok
|
||||
.Dl => :ok
|
||||
.Dl irb(main):009:0> Ic quit
|
||||
.Dl %
|
||||
.Pp
|
||||
.Sh SEE ALSO
|
||||
.Xr ruby 1 .
|
||||
.Pp
|
||||
|
|
Loading…
Add table
Reference in a new issue