diff options
| author | Misty De Meo | 2016-11-03 16:54:20 -0700 | 
|---|---|---|
| committer | Misty De Meo | 2016-11-10 15:09:36 -0800 | 
| commit | d32a1c4c7da96d5cbf12197be1707364d081fa88 (patch) | |
| tree | 08653f685d4318151afdd60ae7c1e4d4ff648bfa /Library/Homebrew/version.rb | |
| parent | 20bbeb5e9c4cdd5fb5b7cc92b46325d86b543cf8 (diff) | |
| download | brew-d32a1c4c7da96d5cbf12197be1707364d081fa88.tar.bz2 | |
Version: add #to_f
This is used by things which used to compare against raw strings,
for example Xcode.uncached_version
Diffstat (limited to 'Library/Homebrew/version.rb')
| -rw-r--r-- | Library/Homebrew/version.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb index f5fdb0966..0f3cbb773 100644 --- a/Library/Homebrew/version.rb +++ b/Library/Homebrew/version.rb @@ -260,6 +260,10 @@ class Version      version.hash    end +  def to_f +    version.to_f +  end +    def to_s      version.dup    end  | 
