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