diff options
author | kyatul <atul.21j@gmail.com> | 2016-08-03 12:09:55 +0530 |
---|---|---|
committer | kyatul <atul.21j@gmail.com> | 2016-08-03 12:43:52 +0530 |
commit | 1f5a40469ed701c979169ae5947eb16be5298011 (patch) | |
tree | ac8288d784d2587a257e7aff390dd6b17313432a | |
parent | c205e3fca333e7c24dd1e36d439f83cdaf074e44 (diff) | |
download | rails-1f5a40469ed701c979169ae5947eb16be5298011.tar.gz rails-1f5a40469ed701c979169ae5947eb16be5298011.tar.bz2 rails-1f5a40469ed701c979169ae5947eb16be5298011.zip |
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 |