Sha256: 7941468183191eb9064dcdfc2c5e277d3064e50df69b7b53836b1521db2bb16e
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module XmlHasher module Configurable attr_writer :snakecase, :ignore_namespaces, :string_keys KEYS = %i[snakecase ignore_namespaces string_keys].freeze def configure yield self self end private def options XmlHasher::Configurable::KEYS.each_with_object({}) do |key, hash| hash[key] = instance_variable_get(:"@#{key}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xmlhasher-1.0.7 | lib/xmlhasher/configurable.rb |
xmlhasher-1.0.6 | lib/xmlhasher/configurable.rb |