[#35592] String#center — Take_tk <ggb03124@...>

 仕様拡張のお願い。と言うほどのものでもないですが・・

33 messages 2002/07/20
[#35593] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35596] Re: String#center — Take_tk <ggb03124@...> 2002/07/20

たけ(tk)です。

[#35597] Re: String#center — Kazuhiro NISHIYAMA <zn@...> 2002/07/20

西山和広です。

[#35599] Rational#to_int ← String#center — Take_tk <ggb03124@...> 2002/07/21

たけ(tk)です。

[#35601] Re: Rational#to_int ← String#center — matz@... (Yukihiro Matsumoto) 2002/07/21

まつもと ゆきひろです

[#35618] new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/23

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

[#35624] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[#35628] Re: new mathn [Re: Rational#to_int ← String#center] — keiju@... (石塚圭樹) 2002/07/24

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

[#35630] Re: new mathn [Re: Rational#to_int ← String#center] — matz@... (Yukihiro Matsumoto) 2002/07/24

まつもと ゆきひろです

[ruby-list:35625] [ANN] CGI::Application-1.2.0-beta released

From: MoonWolf <moonwolf@...>
Date: 2002-07-24 14:43:02 UTC
List: ruby-list #35625
MoonWolfです。

> あら、そうなんですか。すると、動作モードhogeで
> session_hogeが存在する場合、do_hogeは呼ばれない、
> ということでしょうか。
> 相変わらずソースを見てなくて申し訳ないです。

CGI::Application 1.2.0beta で対応してみました。
APIが固まってないのでbeta扱いです。

MethodChainという考えを導入して、メソッドを数珠繋ぎに実行するようにして
みました。SessionManagedで複雑になっていたrunメソッドが55行->7行とすごく
簡素になりました。

    def run(cgi)
      chain = method_chain(cgi)

      body, options = dispatch(cgi, chain)

      cgi.out(options) {
        body
      }
    end

http://www.moonwolf.com/ruby/archive/cgiapp-1.2.0beta.tar.gz

# ruby-win32のアーカイブ公開に使用しているArcMLが、この対応の為に
# 一時的に利用不能になっていましたが、現在は復旧しています。
# http://www.moonwolf.com/~arcml/cgi-bin/arcml/?rm=threadlist&list_id=1&from=201

-- 
MoonWolf <moonwolf@moonwolf.com>


In This Thread