diff --git a/ChangeLog b/ChangeLog index 41a9ebe4e5..d855732e74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Nov 29 23:56:44 2008 Yuki Sonoda (Yugui) + + * man/irb.1 (EXAMPLES): new section + Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto * regparse.c (is_invalid_quantifier_target): Perl and old Ruby diff --git a/man/irb.1 b/man/irb.1 index 6cc6d03231..e8c2ab01f9 100644 --- a/man/irb.1 +++ b/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