Module: RustyLRU::Cache::EnumHelpers Private
- Included in:
- RustyLRU::Cache
- Defined in:
- lib/rusty_lru/cache.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #each_key ⇒ Object private
- #each_pair ⇒ Object private
- #each_value ⇒ Object private
Instance Method Details
#each_key ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
189 190 191 |
# File 'lib/rusty_lru/cache.rb', line 189 def each_key block_given? ? super : enum_for(:each_key) { size } end |
#each_pair ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
185 186 187 |
# File 'lib/rusty_lru/cache.rb', line 185 def each_pair block_given? ? super : enum_for(:each_pair) { size } end |
#each_value ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
193 194 195 |
# File 'lib/rusty_lru/cache.rb', line 193 def each_value block_given? ? super : enum_for(:each_value) { size } end |