push
github
205 of 205 relevant lines covered (100.0%)
14184.08 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
| 3 |
# module Mutils
|
|
| 4 |
module Mutils |
1✔ |
| 5 |
module Lib |
1✔ |
| 6 |
# ResultHash: Store result using this class.
|
|
| 7 |
class ResultHash |
1✔ |
| 8 |
def initialize |
1✔ |
| 9 |
self._hash = {}
|
88,078✔ |
| 10 |
end
|
|
| 11 |
|
|
| 12 |
def []=(key, value) |
1✔ |
| 13 |
_hash[key] = value |
176,203✔ |
| 14 |
end
|
|
| 15 |
|
|
| 16 |
def hash |
1✔ |
| 17 |
_hash |
88,078✔ |
| 18 |
end
|
|
| 19 |
|
|
| 20 |
private |
1✔ |
| 21 |
|
|
| 22 |
attr_accessor :_hash
|
1✔ |
| 23 |
end
|
|
| 24 |
end
|
|
| 25 |
end
|