Sha256: a67b59001e26c04082f25d6230822fec99da61ee8d5311346374962e10ef39df

Contents?: true

Size: 508 Bytes

Versions: 24

Compression:

Stored size: 508 Bytes

Contents

module SAXMachine
  class SAXConfig
    
    class CollectionConfig
      attr_reader :name
      
      def initialize(name, options)
        @name   = name.to_s
        @class  = options[:class]
        @as     = options[:as].to_s
      end
      
      def handler
        SAXHandler.new(@class.new)
      end
      
      def accessor
        as
      end
      
    protected
      
      def as
        @as
      end
      
      def class
        @class || @name
      end      
    end
    
  end
end

Version data entries

24 entries across 24 versions & 7 rubygems

Version Path
MikeSofaer-sax-machine-0.0.15 lib/sax-machine/sax_collection_config.rb
UnderpantsGnome-sax-machine-0.0.13 lib/sax-machine/sax_collection_config.rb
astro-sax-machine-0.0.12.20090419 lib/sax-machine/sax_collection_config.rb
astro-sax-machine-0.0.14 lib/sax-machine/sax_collection_config.rb
astro-sax-machine-0.0.15 lib/sax-machine/sax_collection_config.rb
ealdent-sax-machine-0.0.12 lib/sax-machine/sax_collection_config.rb
ealdent-sax-machine-0.0.4 lib/sax-machine/sax_collection_config.rb
ealdent-sax-machine-0.0.7 lib/sax-machine/sax_collection_config.rb
julien51-sax-machine-0.0.13 lib/sax-machine/sax_collection_config.rb
julien51-sax-machine-0.0.14 lib/sax-machine/sax_collection_config.rb
julien51-sax-machine-0.0.15 lib/sax-machine/sax_collection_config.rb
julien51-sax-machine-0.0.16 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.10 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.11 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.12 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.13 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.14 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.4 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.5 lib/sax-machine/sax_collection_config.rb
pauldix-sax-machine-0.0.6 lib/sax-machine/sax_collection_config.rb