Skip to content

Commit

Permalink
Version: add #to_f
Browse files Browse the repository at this point in the history
This is used by things which used to compare against raw strings,
for example Xcode.uncached_version
  • Loading branch information
mistydemeo committed Nov 10, 2016
1 parent 20bbeb5 commit d32a1c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/Homebrew/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ def hash
version.hash
end

def to_f
version.to_f
end

def to_s
version.dup
end
Expand Down

0 comments on commit d32a1c4

Please sign in to comment.