On Mon, Jun 05, 2006 at 02:55:42AM +0900, Joey wrote:
> I tried to look into changing YAML.load to make OpenStruct's instead of
> hashes, but I soon gave up on that :)

Your curiousity shouldn't go unmet.

  require 'yaml'
  require 'ostruct'
  
  class << YAML::DefaultResolver
    alias_method :_node_import, :node_import
    def node_import(node)
      o = _node_import(node)
      o.is_a?(Hash) ? OpenStruct.new(o) : o
    end
  end

_why