Sha256: a45f37d644531b2bfc1bf69426bb56d9b593b7abf25f141862e22ce410978a64

Contents?: true

Size: 612 Bytes

Versions: 17

Compression:

Stored size: 612 Bytes

Contents

module Aio::Module

  class Compare
    
    # 比较文件
    attr_accessor :compare

    # 被比较的文件
    attr_accessor :compared

    def initialize
      @compare = {}
      @compared = {}

      @config_compare = Aio::Config::Warning::Compare
    end

    def compare_add(key, val)
      @compare[key] = val
    end

    def compared_add(key, val)
      @compared[key] = val
    end

    # 融合比较文件的内容
    def compare_merge(hash)
      @compare.merge!(hash)
    end

    # 融合被比较文件的内容
    def compared_merge(hash)
      @compared.merge(hash)
    end

  end
end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
aio_elin-1.1.8 lib/aio/core/module/compare.rb
aio_elin-1.1.7 lib/aio/core/module/compare.rb
aio_elin-1.1.4 lib/aio/core/module/compare.rb
aio_elin-1.1.3 lib/aio/core/module/compare.rb
aio_elin-1.1.2 lib/aio/core/module/compare.rb
aio_elin-1.1.1 lib/aio/core/module/compare.rb
aio_elin-1.1.0 lib/aio/core/module/compare.rb
aio_elin-1.0.9 lib/aio/core/module/compare.rb
aio_elin-1.0.8 lib/aio/core/module/compare.rb
aio_elin-1.0.7 lib/aio/core/module/compare.rb
aio_elin-1.0.6 lib/aio/core/module/compare.rb
aio_elin-1.0.5 lib/aio/core/module/compare.rb
aio_elin-1.0.4 lib/aio/core/module/compare.rb
aio_elin-1.0.3 lib/aio/core/module/compare.rb
aio_elin-1.0.2 lib/aio/core/module/compare.rb
aio_elin-1.0.1 lib/aio/core/module/compare.rb
aio_elin-1.0.0 lib/aio/core/module/compare.rb