summaryrefslogtreecommitdiff
path: root/lib/chef/version_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/version_class.rb')
-rw-r--r--lib/chef/version_class.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/version_class.rb b/lib/chef/version_class.rb
index f98673b019..68acaf1e44 100644
--- a/lib/chef/version_class.rb
+++ b/lib/chef/version_class.rb
@@ -33,7 +33,7 @@ class Chef
end
def <=>(other)
- [:major, :minor, :patch].each do |method|
+ %i{major minor patch}.each do |method|
version = send(method)
begin
ans = (version <=> other.send(method))