2006-02-13 外側のself Rubyの一番外側のスコープでのselfはmainというObjectのようです。 puts "1: #{self}, #{self.class}" #=> 1: main, Object module Rubyco puts "2: #{self}, #{self.class}" #=> 2: Rubyco, Module class Rubyco puts "3: #{self}, #{self.class}" #=> 3: Rubyco::Rubyco, Class end end