diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-08-03 11:41:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-03 11:41:26 +0200 |
commit | cdb347bdb342f31249bc67e61683b8e977148089 (patch) | |
tree | 696a4e36671678f1058eb1ed03cdd1b5be307262 | |
parent | d46d61e46e0053efefcc5409795c1121510c2038 (diff) | |
parent | 1f5a40469ed701c979169ae5947eb16be5298011 (diff) | |
download | rails-cdb347bdb342f31249bc67e61683b8e977148089.tar.gz rails-cdb347bdb342f31249bc67e61683b8e977148089.tar.bz2 rails-cdb347bdb342f31249bc67e61683b8e977148089.zip |
Merge pull request #26036 from kyatul/doc_string_inquirer
Add documentation for ActiveSupport::StringInquirer [ci skip]
-rw-r--r-- | activesupport/lib/active_support/string_inquirer.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/string_inquirer.rb b/activesupport/lib/active_support/string_inquirer.rb index bc673150d0..5290f589d9 100644 --- a/activesupport/lib/active_support/string_inquirer.rb +++ b/activesupport/lib/active_support/string_inquirer.rb @@ -8,6 +8,12 @@ module ActiveSupport # you can call this: # # Rails.env.production? + # + # == Instantiating a new StringInquirer + # + # vehicle = ActiveSupport::StringInquirer.new('car') + # vehicle.car? # => true + # vehicle.bike? # => false class StringInquirer < String private |