Sha256: f9f497cb4344369e7ddbb74d8ca99ba3658954d5769ec70269a08ab16c3f93cd

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

require 'hashie/dash'
require 'hashie/mash'
require 'hashie/extensions/coercion'

module Polytrix
  class Dash < Hashie::Dash
    include Hashie::Extensions::Coercion

    def initialize(hash = {})
      mash = Hashie::Mash.new(hash)
      super mash.to_hash(symbolize_keys: true)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polytrix-0.1.2 lib/polytrix/core/hashie.rb
polytrix-0.1.1 lib/polytrix/core/hashie.rb
polytrix-0.1.0 lib/polytrix/core/hashie.rb