lib/ronin/cache/extension_cache.rb in ronin-0.1.1 vs lib/ronin/cache/extension_cache.rb in ronin-0.1.2
- old
+ new
@@ -42,30 +42,12 @@
end
block.call(self) if block
end
- #
- # Returns the names of all extensions within the cache.
- #
- def names
- keys
- end
-
- #
- # Returns the extensions within the cache.
- #
- def extensions
- values
- end
-
- #
- # Iterates over each extension within the cache, passing each to the
- # specified _block_.
- #
- def each_extension(&block)
- each_value(&block)
- end
+ alias names keys
+ alias extensions values
+ alias each_extension each_value
#
# Selects the extensions within the cache that match the specified
# _block_.
#