summaryrefslogtreecommitdiffstats
path: root/lib/facter.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-14 10:17:18 -0500
committerLuke Kanies <luke@madstop.com>2008-05-14 10:17:18 -0500
commitcc9e2217fd62f02665da84489dc88be6559d2909 (patch)
tree8ebd4e55670d0bb30441ef7776034deffcad1ce8 /lib/facter.rb
parent48b874454cd4a6081e96365d3a19fb2b08c9d740 (diff)
downloadfacter-cc9e2217fd62f02665da84489dc88be6559d2909.tar.gz
facter-cc9e2217fd62f02665da84489dc88be6559d2909.tar.xz
facter-cc9e2217fd62f02665da84489dc88be6559d2909.zip
Adding the 'each' method back into Facter.
It's used by iClassify, and maybe others. I haven't made Facter enumerable again, but the collection is.
Diffstat (limited to 'lib/facter.rb')
-rw-r--r--lib/facter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter.rb b/lib/facter.rb
index 09b1965..913060e 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -74,7 +74,7 @@ module Facter
end
class << self
- [:add, :fact, :flush, :list, :to_hash, :value].each do |method|
+ [:add, :each, :fact, :flush, :list, :to_hash, :value].each do |method|
define_method(method) do |*args|
collection.send(method, *args)
end