Sha256: dda67d3320753def4f5626d8e9c0b42082f5628b948e2f7e9d891ec32e4acbc4

Contents?: true

Size: 331 Bytes

Versions: 8

Compression:

Stored size: 331 Bytes

Contents

# 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

require "logstash/rubyfixes/regexp_union_takes_array"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstash-lite-0.2.20110505142231 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110422152244 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110405105201 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110331121236 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110329105411 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110206003603 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110203130400 lib/logstash/ruby_fixes.rb
logstash-lite-0.2.20110122143801 lib/logstash/ruby_fixes.rb