Sha256: ec7d06394e9ba20a0abddaeb3e70c9bf07ad156a3e6757cffe9cbf540e96c8da

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

module XmlHasher
  module Configurable

    attr_writer :snakecase, :ignore_namespaces

    KEYS = [:snakecase, :ignore_namespaces]

    def configure
      yield self
      self
    end

    private

    def options
      XmlHasher::Configurable::KEYS.inject({}) { |hash, key| hash[key] = instance_variable_get(:"@#{key}"); hash }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xmlhasher-0.0.5 lib/xmlhasher/configurable.rb
xmlhasher-0.0.4 lib/xmlhasher/configurable.rb
xmlhasher-0.0.3 lib/xmlhasher/configurable.rb
xmlhasher-0.0.2 lib/xmlhasher/configurable.rb
xmlhasher-0.0.1 lib/xmlhasher/configurable.rb