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.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/version_class.rb b/lib/chef/version_class.rb
index b27a9cc421..64b0e1cb47 100644
--- a/lib/chef/version_class.rb
+++ b/lib/chef/version_class.rb
@@ -20,7 +20,7 @@ class Chef
include Comparable
attr_reader :major, :minor, :patch
- def initialize(str="")
+ def initialize(str = "")
parse(str)
end
@@ -53,7 +53,7 @@ class Chef
protected
- def parse(str="")
+ def parse(str = "")
@major, @minor, @patch =
case str.to_s
when /^(\d+)\.(\d+)\.(\d+)$/
@@ -65,6 +65,5 @@ class Chef
raise Chef::Exceptions::InvalidCookbookVersion.new( msg )
end
end
-
end
end