Artifact [67f1791d88]
Artifact 67f1791d888c67a7c92fb14ccbb84026257df2a1:
- File lib/fpm/rubyfixes.rb — part of check-in [14cc1c0420] at 2011-03-30 22:53:17 on branch trunk — - monkeypatch String#start_with? becuase ruby <=1.8.6 doesn't have it. (user: jls@semicomplete.com size: 277)
# Ruby 1.8.7 added String#start_with? - monkeypatch the # String class if it isn't supported (<= ruby 1.8.6) if !String.instance_methods.include?("start_with?") class String public def start_with?(str) return self[0 .. (str.length-1)] == str end end end