blob: 2474fd8c996088f46b8bfbbd256a10d869d9c3a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'hashie/dash'
require 'hashie/extensions/dash/property_translation'
module Hashie
# A Trash is a 'translated' Dash where the keys can be remapped from a source
# hash.
#
# Trashes are useful when you need to read data from another application,
# such as a Java api, where the keys are named differently from how we would
# in Ruby.
class Trash < Dash
include Hashie::Extensions::Dash::PropertyTranslation
end
end
|