Sha256: bcc1fc7fb07d6dd81ea95e7ab3b790f2e49abd4ad17c142837cc0a5497e0885c

Contents?: true

Size: 379 Bytes

Versions: 8

Compression:

Stored size: 379 Bytes

Contents

module XmlHasher
  module Configurable

    attr_writer :snakecase, :ignore_namespaces, :string_keys

    KEYS = [:snakecase, :ignore_namespaces, :string_keys]

    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

8 entries across 8 versions & 2 rubygems

Version Path
xmlhasher_with_attributes-1.0.1 lib/xmlhasher/configurable.rb
xmlhasher_with_attributes-1.0.0 lib/xmlhasher/configurable.rb
xmlhasher-1.0.4 lib/xmlhasher/configurable.rb
xmlhasher-1.0.3 lib/xmlhasher/configurable.rb
xmlhasher-1.0.2 lib/xmlhasher/configurable.rb
xmlhasher-1.0.1 lib/xmlhasher/configurable.rb
xmlhasher-1.0.0 lib/xmlhasher/configurable.rb
xmlhasher-0.0.6 lib/xmlhasher/configurable.rb