From: Yasushi Shoji Date: 2000-04-05T15:06:49+09:00 Subject: [ruby-dev:9553] File#new doesn't call initialize? やすしです。 以下の codeで printされる物が versionによって違うみたいです。 1.5 => 3 1.4.3 => nil -r ruby_1_4 Apr 5 1:53am EDT => nil 1.5の振舞いを期待してたのですが‥。 -- yashi class IndentFile < File def initialize(a,b) @currIndent = 3 end attr_accessor :currIndent end out = IndentFile.new("out", "w+") p out.currIndent