diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-14 10:17:18 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-14 10:17:18 -0500 |
commit | cc9e2217fd62f02665da84489dc88be6559d2909 (patch) | |
tree | 8ebd4e55670d0bb30441ef7776034deffcad1ce8 /lib/facter.rb | |
parent | 48b874454cd4a6081e96365d3a19fb2b08c9d740 (diff) | |
download | facter-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.rb | 2 |
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 |