Sha256: 9b9ded33e0451fc8f6fdf3b01e86c582872ec930c224f2c0c3dedcd50445d75b

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

module SAXMachine
  class SAXConfig

    class AncestorConfig
      attr_reader :name, :setter

      def initialize(name, options)
        @name = name.to_s

        @as = options[:as]
        @setter = "#{@as}="
      end

      def column
        @as || @name.to_sym
      end

    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
sax-machine-0.2.1 lib/sax-machine/sax_ancestor_config.rb
sax-machine-patched-0.2.0.rc2 lib/sax-machine/sax_ancestor_config.rb
sax-machine-0.2.0.rc1 lib/sax-machine/sax_ancestor_config.rb
sax-machine-0.1.0 lib/sax-machine/sax_ancestor_config.rb