Sha256: 96612c0782afac124c5bc598a7c6826514dfe4a2500e5864164e118a63bbb0a5

Contents?: true

Size: 364 Bytes

Versions: 20

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

# module Mutils
module Mutils
  module Lib
    # ResultHash: Store result using this class.
    class ResultHash
      def initialize
        self._hash = {}
      end

      def []=(key, value)
        _hash[key] = value
      end

      def hash
        _hash
      end

      private

      attr_accessor :_hash
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mutils-1.3.3 lib/mutils/lib/result_hash.rb
mutils-1.3.2 lib/mutils/lib/result_hash.rb
mutils-1.3.1 lib/mutils/lib/result_hash.rb
mutils-1.3.0 lib/mutils/lib/result_hash.rb
mutils-1.2.6 lib/mutils/lib/result_hash.rb
mutils-1.2.5 lib/mutils/lib/result_hash.rb
mutils-1.2.2 lib/mutils/lib/result_hash.rb
mutils-1.2.1 lib/mutils/lib/result_hash.rb
mutils-1.2.0 lib/mutils/lib/result_hash.rb
mutils-1.1.8 lib/mutils/lib/result_hash.rb
mutils-1.1.7 lib/mutils/lib/result_hash.rb
mutils-1.1.6 lib/mutils/lib/result_hash.rb
mutils-1.1.5 lib/mutils/lib/result_hash.rb
mutils-1.1.4 lib/mutils/lib/result_hash.rb
mutils-1.1.3 lib/mutils/lib/result_hash.rb
mutils-1.1.2 lib/mutils/lib/result_hash.rb
mutils-1.1.1 lib/mutils/lib/result_hash.rb
mutils-1.1.0 lib/mutils/lib/result_hash.rb
mutils-1.0.1 lib/mutils/lib/result_hash.rb
mutils-1.0.0 lib/mutils/lib/result_hash.rb