diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-08 08:54:01 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-08 08:54:01 +0000 |
| commit | 94e1f8eae7883614cdddd000a09d129e1b353e35 (patch) | |
| tree | b1fc6d8062eebd46c7b8f4fd67f606c9af8f93c2 /sample | |
| parent | a96483e2ced5119e0a60eb4ac89a5357959a05ca (diff) | |
| download | ruby-94e1f8eae7883614cdddd000a09d129e1b353e35.tar.gz ruby-94e1f8eae7883614cdddd000a09d129e1b353e35.tar.xz ruby-94e1f8eae7883614cdddd000a09d129e1b353e35.zip | |
2000-02-08
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/eval.rb | 2 | ||||
| -rw-r--r-- | sample/mkproto.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sample/eval.rb b/sample/eval.rb index 216bf8ca3..b9a54df34 100644 --- a/sample/eval.rb +++ b/sample/eval.rb @@ -31,7 +31,7 @@ while TRUE end begin print eval(line).inspect, "\n" - rescue + rescue ScriptError, StandardError $! = 'exception raised' unless $! print "ERR: ", $!, "\n" end diff --git a/sample/mkproto.rb b/sample/mkproto.rb index 866124008..3423a1590 100644 --- a/sample/mkproto.rb +++ b/sample/mkproto.rb @@ -14,7 +14,7 @@ while gets() else type = "" end - while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") + while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") && $~ args.push type + " " + $1.strip end else |
