[#14133] Thread safe eRuby — Yoshinori Toki <toki@...>

土岐です。

20 messages 1999/05/05

[#14203] class def in class def — kikutani@...

きくたにです。なんか初歩的質問で恥ずかしいけど。

46 messages 1999/05/10
[#14205] Re: class def in class def — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/05/11

なひです.

[#14209] private inner class (Re: Re: class def in class def) — matz@... (Yukihiro Matsumoto) 1999/05/11

[#14210] Re: private inner class (Re: Re: class def in class def) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/05/11

なひです.

[#14211] Re: private inner class (Re: Re: class def in class def) — matz@... (Yukihiro Matsumoto) 1999/05/11

まつもと ゆきひろです

[#14214] Re: private inner class (Re: Re: class def in class def) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/05/11

なひです.

[#14216] Re: private inner class (Re: Re: class def in class def) — matz@... (Yukihiro Matsumoto) 1999/05/11

まつもと ゆきひろです

[#14228] Re: private inner class (Re: Re: class def in class def) — 中村暁史 <anakamur@...> 1999/05/12

[#14229] Re: private inner class (Re: Re: class def in class def) — Shugo Maeda <shugo@...> 1999/05/12

前田です。

[#14234] Re: private inner class (Re: Re: class def in class def) — Takayuki SAGIJIMA <sat@...> 1999/05/12

五樹島です。お世話になっております。

[#14237] Re: private inner class (Re: Re: class def in class def) — 中村暁史 <anakamur@...> 1999/05/12

[#14239] Re: private inner class (Re: Re: class def in class def) — hisanori@... 1999/05/12

松尾です。

[#14243] Re: private inner class (Re: Re: class def in class def) — a1602hi@... 1999/05/12

石橋秀仁です. はじめまして.

[#14244] Re: private inner class (Re: Re: class def in class def) — Shugo Maeda <shugo@...> 1999/05/12

前田です。

[#14282] What's |n| ? — Kohji IKEDA <kid@...>

はじめまして、池田@ソフトサイエンスです。

23 messages 1999/05/13
[#14288] Re: What's |n| ? — Tomoyuki Kosimizu <greentea@...2.so-net.ne.jp> 1999/05/13

From: Kohji IKEDA <kid@mwc.biglobe.ne.jp>

[#14289] Re: What's |n| ? — Kohji IKEDA <kid@...> 1999/05/13

ども、池田@ソフトサイエンスです。

[#14336] archive.rb — Takashi Nishimoto <g96p0935@...>

必要のため、統合アーカイバを書いてみました。

19 messages 1999/05/15

[#14379] Ruby as the First Language — Hideto Ishibashi <a1602hi@...>

石橋秀仁です.

17 messages 1999/05/18

[#14417] はじめまして — Kenji Horikoshi <k-horix@...>

はじめまして,堀越と申します.

12 messages 1999/05/21

[#14428] sort — Koyama Hideo<fa8h-kym@...>

もとcobol屋の小山と申します。

18 messages 1999/05/22

[#14441] ConditionVariable (thread.rb) — SEKI <m_seki@...>

44 messages 1999/05/23
[#14445] Re: ConditionVariable (thread.rb) — SEKI <m_seki@...> 1999/05/23

[#14472] Re: ConditionVariable (thread.rb) — Shin-ichiro Hara <sinara@...> 1999/05/24

原です。

[#14473] Re: ConditionVariable (thread.rb) — Shugo Maeda <shugo@...> 1999/05/24

前田です。

[#14504] Re: ConditionVariable (thread.rb) — Shugo Maeda <shugo@...> 1999/05/25

前田です。

[#14509] Re: ConditionVariable (thread.rb) — Shin-ichiro Hara <sinara@...> 1999/05/25

原です。

[#14512] Re: ConditionVariable (thread.rb) — Shugo Maeda <shugo@...> 1999/05/25

前田です。

[#14807] ConditionVariable (again) — Shin-ichiro Hara <sinara@...> 1999/06/04

原です。

[#14809] Re: ConditionVariable (again) — Shin-ichiro Hara <sinara@...> 1999/06/04

原です。

[#14813] Re: ConditionVariable (again) — Shugo Maeda <shugo@...> 1999/06/04

前田です。

[#14513] Hater — cercine@... (Takashi Ikeda)

池田です。

144 messages 1999/05/25
[#14563] Re: Hater — Kenji Horikoshi <k-horix@...> 1999/05/26

こんにちは,堀越です.

[#14565] Re: Hater — Ataru NAKATA <anakata@...> 1999/05/26

中田@Vectorです。こんな話の時だけ。

[#14574] Re: Hater — Kenji Horikoshi <k-horix@...> 1999/05/26

こんにちは,堀越です.

[#14608] Re: Hater — 中村暁史 <anakamur@...> 1999/05/27

[#14624] Re: Hater — Kenji Horikoshi <k-horix@...> 1999/05/27

こんにちは,堀越です.

[#14635] Re: Hater — 中村暁史 <anakamur@...> 1999/05/28

[#14644] Teach PO first, then OO? (Re: Hater) — Hideto Ishibashi <s34204@...> 1999/05/28

石橋秀仁です.

[#14664] Re: Teach PO first, then OO? (Re: Hater) — Kenji Horikoshi <k-horix@...> 1999/05/28

こんにちは,堀越です.

[#14678] Re: Teach PO first, then OO? (Re: Hater) — Hideto Ishibashi <s34204@...> 1999/05/29

石橋秀仁です. こんにちは.

[#14680] Re: Teach PO first, then OO? (Re: Hater) — Koyama Hideo<fa8h-kym@...> 1999/05/29

もと、大型機使いの小山です。

[#14692] Re: Teach PO first, then OO? (Re: Hater) — 中村暁史 <anakamur@...> 1999/05/31

[#14695] Re: Teach PO first, then OO? (Re: Hater) — ARIMA Yasuhiro <fit0298@...> 1999/05/31

有馬@FITECです。

[#14703] Re: Teach PO first, then OO? (Re: Hater) — Koji Arai <JCA02266@...> 1999/05/31

新井です。

[#14706] Re: Teach PO first, then OO? (Re: Hater) — ARIMA Yasuhiro <fit0298@...> 1999/06/01

有馬@FITECです。

[#14526] Re: Hater — matz@... (Yukihiro Matsumoto) 1999/05/26

まつもと ゆきひろです

[#14533] Re: Hater — Katsuya Tanaka <tanaka@...> 1999/05/26

[#14537] 中学生に Ruby (Re: Re: Hater) — matz@... (Yukihiro Matsumoto) 1999/05/26

まつもと ゆきひろです

[#14553] Re: 中学生に Ruby (Re: Re: Hater) — Ryuichi Danno <daxanya@...4u.or.jp> 1999/05/26

だんのです。

[#14555] Re: 中学生に Ruby (Re: Re: Hater) — matz@... (Yukihiro Matsumoto) 1999/05/26

まつもと ゆきひろです

[#14557] Re: 中学生に Ruby (Re: Re: Hater) — 中村暁史 <anakamur@...> 1999/05/26

[#14558] Re: 中学生に Ruby (Re: Re: Hater) — Hideto Ishibashi <s34204@...> 1999/05/26

石橋秀仁%チュートリアル構想中です.

[#14572] Re: 中学生に Ruby (Re: Re: Hater) — gotoken@... (GOTO Kentaro) 1999/05/26

ごとけんです

[#14605] Re: 中学生に Ruby (Re: Re: Hater) — 中村暁史 <anakamur@...> 1999/05/27

[#14632] Re: 中学生に Ruby (Re: Re: Hater) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/05/28

なひです.

[#14636] Re: 中学生に Ruby (Re: Re: Hater) — Hideto Ishibashi <s34204@...> 1999/05/28

石橋秀仁です.

[#14665] Re: 中学生に Ruby (Re: Re: Hater) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/05/28

なひです.大学では自然言語処理や知識表現について研究しておりました.

[#14614] Re: 中学生に Ruby (Re: Re: Hater) — Hideto Ishibashi <s34204@...> 1999/05/27

石橋秀仁です.

[#14569] Re: 中学生に Ruby (Re: Hater) — Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp> 1999/05/26

早坂@会津大学といいます。

[#14521] ruby の書き方 ? — goto@...

後藤@横河工事です。以前、ここでお世話になったおかげで、なんとか

20 messages 1999/05/26

[#14696] Ruby traps & tips — Akira Endo <akendo@...3.rim.or.jp>

遠藤です。

19 messages 1999/05/31

[ruby-list:14642] Re: archive.rb

From: Takashi Nishimoto <g96p0935@...>
Date: 1999-05-28 02:50:05 UTC
List: ruby-list #14642
archive.rb に対して、いろいろな方法を試しています。

Module の Mix-in って手もあるような気がして、以下のコードを書いていま
すが、うまくいきません。
include のところでコケてしまいます。

#!/usr/bin/ruby
include FileTest

class Archive
  def what_type
    raise "file #{@file} not found" unless exist?(@file)
    @file[-3,3].downcase == 'lzh' and return Lha
    @file[-3,3].downcase == 'tgz' and return Tar
    @file[-6,6].downcase == 'tar.gz' and return Tar
    `file #{@file}` =~  /lha.+archive/i  and return Lha
    raise "file #{@file} is not an archive file."
  end
  def initialize (file)
    @file=file
    @type=what_type
    include @type
  end
  def print_id
    puts "#{name}"
    puts "This file is '#{@file}'."
  end
  def delete_extracted_files
    @extracted_files.each { |f| File.unlink(f) if exist?(f) }
  end
end


 

module Lha
  def list (file)
    `lha l #{file}`.split (/\n/)[2..-3].filter { |l| l[46..-1]}
  end
  def extract (file)
    @extracted_files=`lha xf #{file}`.split (/\n/).filter { |l| l.split[0] }
  end

end


module Tar
  def list (file)
    `tar tzf #{file}`.split (/\n/)
  end
  def extract (file)
    @extracted_files=`tar xzvf #{file}`.split (/\n/)
  end

end

---
そして irb -r archive.rb

irb(main):001:0> a=Archive.new ("/dos/comwin/filer091.lzh")
NameError: undefined method `include' for #<Archive:0x402222c0>
./archive.rb:24:in `initialize'
(irb):1:in `new'
(irb):1
(irb_local_binding):1:in `eval'

--
Takashi Nishimoto: g96p0935@mse.waseda.ac.jp
I love Emacs, zsh, and Linux!!
See ftp://ftp.misao.gr.jp/pub/tak/README
Key fingerprint = EE D7 1D 18 A9 42 C0 8A  63 E7 F2 AC 4D C7 83 6B

In This Thread