diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-09 08:49:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-09 08:49:27 +0000 |
commit | 74896c0252bf76c159a40895a5dfe2e75ab112bf (patch) | |
tree | e8685357d4c0ed1970c77ee8f1314c866b391e9b /activesupport/lib | |
parent | afbfde9357ab0c6bbaebb62eaa99af8c3825d6ac (diff) | |
download | rails-74896c0252bf76c159a40895a5dfe2e75ab112bf.tar.gz rails-74896c0252bf76c159a40895a5dfe2e75ab112bf.tar.bz2 rails-74896c0252bf76c159a40895a5dfe2e75ab112bf.zip |
Added String#starts_with? and String#ends_with? #2118 [thijs@vandervossen.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/string.rb b/activesupport/lib/active_support/core_ext/string.rb index fce0557c64..979f8a0515 100644 --- a/activesupport/lib/active_support/core_ext/string.rb +++ b/activesupport/lib/active_support/core_ext/string.rb @@ -1,9 +1,11 @@ require File.dirname(__FILE__) + '/string/inflections' require File.dirname(__FILE__) + '/string/conversions' require File.dirname(__FILE__) + '/string/access' +require File.dirname(__FILE__) + '/string/starts_ends_with' class String #:nodoc: include ActiveSupport::CoreExtensions::String::Access include ActiveSupport::CoreExtensions::String::Conversions include ActiveSupport::CoreExtensions::String::Inflections + include ActiveSupport::CoreExtensions::String::StartsEndsWith end |