| Conditions | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # frozen_string_literal: true |
||
| 13 | def initialize |
||
| 14 | super(Aux::HashTuple, virtual: true) |
||
| 15 | |||
| 16 | attribute!(:key, parameter!(:K)) |
||
| 17 | attribute!(:value, parameter!(:V)) |
||
| 18 | |||
| 19 | enumerator_block do |entity, type, *| |
||
| 20 | ::Enumerator.new do |yielder| |
||
| 21 | yielder << [type.attributes[:key], entity.key, nil] |
||
| 22 | yielder << [type.attributes[:value], entity.value, nil] |
||
| 23 | end |
||
| 24 | end |
||
| 25 | end |
||
| 26 | |||
| 34 |