[#30426] CGI でグラフを描くときにお勧めのライブラリは? — 堀川 久 <vzw00011@...>

こんにちは。

12 messages 2001/07/01

[#30453] syntax check without execution? — Tanaka Akira <akr@...17n.org>

最近、eRuby のまねごとをしていて、そのなかで Ruby のコードを生成してい

16 messages 2001/07/04
[#30455] Re: syntax check without execution? — matz@... (Yukihiro Matsumoto) 2001/07/04

まつもと ゆきひろです

[#30479] Object#dup — "Shin'ya Adzumi" <adzumi@...>

あづみです。

20 messages 2001/07/05

[#30512] open errno EALREADY triggerd — "Inoue" <inoue@...>

井上です。

16 messages 2001/07/08

[#30514] Ruby module frame work? — Takahiro Kambe <taca@...>

こんにちは。

16 messages 2001/07/09
[#30515] Re: Ruby module frame work? — matz@... (Yukihiro Matsumoto) 2001/07/09

まつもと ゆきひろです

[#30529] InterBase を使用したい — "YOUJI KUROKAWA" <CQE10242@...>

環境

22 messages 2001/07/09

[#30530] Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...>

縄手@松江と言います。

17 messages 2001/07/09
[#30531] Re: Question about script on the book "Ruby nyuumon" — rubikitch <rubikitch@...> 2001/07/09

From: NAWATE Masahiko <agul@mag.shimane-u.ac.jp>

[#30533] Re: Question about script on the book "Ruby nyuumon" — NAWATE Masahiko <agul@...> 2001/07/09

縄手@松江です。

[#30734] UML クラス図と Ruby の記述についての対応 — Ken-ichi HASHIMOTO <ken@...>

橋本@福井県在住です。

13 messages 2001/07/28

[#30764] int/int => float? — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

50 messages 2001/07/31
[#30767] Re: int/int => float? — keiju@... (石塚圭樹) 2001/07/31

けいじゅ@日本ラショナルソフトウェアです.

[#30768] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[#30770] Re: int/int => float? — Take_tk <ggb03124@...> 2001/07/31

たけ(tk)です。

[#30771] Re: int/int => float? — matz@... (Yukihiro Matsumoto) 2001/07/31

まつもと ゆきひろです

[#30785] Re: int/int => float? — Konishi@... (Hiromasa KONISHI) 2001/07/31

 KONISHI Hiromasaです。

[ruby-list:30597] Re: case 文で文字列を判断したい

From: "NAKAMURA, Hiroshi" <nakahiro@...>
Date: 2001-07-11 01:13:58 UTC
List: ruby-list #30597
なひです。

> From: Takuo Tabata [mailto:taku@mis.co.jp]
> Sent: Wednesday, July 11, 2001 12:04 AM

> > で、mode.typeを表示してみれば原因がわかったかも。
> 
>  ありがとうございます。
>  これだけで2時間近く悩んでました…。トホホ…

デバッガも便利です。

Script started on Wed Jul 11 10:11:37 2001
0% cat review.cgi
#!/usr/local/bin/ruby -Ke
require 'cgi'
cgidat = CGI.new

print "Content-type: text/html\n\n"

mode = cgidat["MODE"]

case mode
when "IDXVIEW"
  puts 'OK'
else
  raise RuntimeError.new( 'NG' )
end
0% ruby -rdebug ./review.cgi MODE=IDXVIEW
Debug.rb
Emacs support available.

./review.cgi:2:require 'cgi'
(rdb:1) list
[-3, 6] in ./review.cgi
   1  
=> 2  require 'cgi'
   3  cgidat = CGI.new
   4  
   5  print "Content-type: text/html\n\n"
   6  
(rdb:1) list
[7, 16] in ./review.cgi
   7  mode = cgidat["MODE"]
   8  
   9  case mode
   10  when "IDXVIEW"
   11    puts 'OK'
   12  else
   13    raise RuntimeError.new( 'NG' )
   14  end
(rdb:1) break 9
Set breakpoint 1 at review.cgi:9
(rdb:1) cont
Content-type: text/html

Breakpoint 1, toplevel at review.cgi:9
./review.cgi:9:case mode
(rdb:1) list
[4, 13] in ./review.cgi
   4  
   5  print "Content-type: text/html\n\n"
   6  
   7  mode = cgidat["MODE"]
   8  
=> 9  case mode
   10  when "IDXVIEW"
   11    puts 'OK'
   12  else
   13    raise RuntimeError.new( 'NG' )
(rdb:1) p mode
["IDXVIEW"]
(rdb:1) p mode.type
Array
(rdb:1) mode = mode[0]
"IDXVIEW"
(rdb:1) cont
OK
0% exit
exit

Script done on Wed Jul 11 10:12:10 2001

ただしまつもとさんを含め、
Rubyistには「Rubyにはデバッガ要らん」という人も多いです。異端なひ。

In This Thread