Sha256: 74c2734fabc5d70d33211d89dabfe96ecc9815a230c48cc6c92db3e4dc44dc2f
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 Bytes
Contents
module Rordash class Chain attr_reader :value def initialize(value) @value = value end def to_h @value = HashUtil.from_string(@value) self end def to_str @value = HashUtil.to_str(@value) self end def deep_compact @value = HashUtil.deep_compact(@value) self end def pick(paths) @value = HashUtil.pick(@value, paths) self end def merge(other) @value = @value.merge(other) self end def set(path, value) HashUtil.set(@value, path, value) self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rordash-0.1.3 | lib/rordash/chain.rb |
rordash-0.1.2 | lib/rordash/chain.rb |