File: string_keyed.rb

package info (click to toggle)
ruby-snaky-hash 2.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,156 kB
  • sloc: ruby: 1,298; javascript: 529; makefile: 4; sh: 4
file content (13 lines) | stat: -rw-r--r-- 466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module SnakyHash
  # serializer is being introduced as an always disabled option for backwards compatibility.
  # In snaky_hash v3 it will default to true.
  # If you want to start using it immediately, reopen this class and add the Serializer module:
  #
  #   SnakyHash::StringKeyed.class_eval do
  #     extend SnakyHash::Serializer
  #   end
  #
  class StringKeyed < Hashie::Mash
    include SnakyHash::Snake.new(key_type: :string, serializer: false)
  end
end