Sha256: 729395de2dc0602e10754216fd1a3d93ec427a522a99093c8b7c735456951c45

Contents?: true

Size: 282 Bytes

Versions: 49

Compression:

Stored size: 282 Bytes

Contents

require 'itamae'
require 'hashie'
require 'json'

module Itamae
  class Node < Hashie::Mash
    def reverse_merge(other_hash)
      Hashie::Mash.new(other_hash).merge(self)
    end

    def reverse_merge!(other_hash)
      self.replace(reverse_merge(other_hash))
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
itamae-1.0.10 lib/itamae/node.rb
itamae-1.0.9 lib/itamae/node.rb
itamae-1.0.8 lib/itamae/node.rb
itamae-1.0.7 lib/itamae/node.rb
itamae-1.0.6 lib/itamae/node.rb
itamae-1.0.5 lib/itamae/node.rb
itamae-1.0.4 lib/itamae/node.rb
itamae-1.0.3 lib/itamae/node.rb
itamae-1.0.2 lib/itamae/node.rb
itamae-1.0.1 lib/itamae/node.rb
itamae-1.0.0 lib/itamae/node.rb
itamae-1.0.0.beta50 lib/itamae/node.rb
itamae-1.0.0.beta49 lib/itamae/node.rb
itamae-1.0.0.beta48 lib/itamae/node.rb
itamae-1.0.0.beta47 lib/itamae/node.rb
itamae-1.0.0.beta46 lib/itamae/node.rb
itamae-1.0.0.beta45 lib/itamae/node.rb
itamae-1.0.0.beta44 lib/itamae/node.rb
itamae-1.0.0.beta43 lib/itamae/node.rb
itamae-1.0.0.beta42 lib/itamae/node.rb