Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (12 sloc) 0.375 kb
3937296 David Heinemeier Hansson Add String#inquiry as a convenience method for turning a string into a S...
dhh authored
1 require 'active_support/string_inquirer'
2
3 class String
ffb70cf Vijay Dev minor fixes
vijaydev authored
4 # Wraps the current string in the <tt>ActiveSupport::StringInquirer</tt> class,
3937296 David Heinemeier Hansson Add String#inquiry as a convenience method for turning a string into a S...
dhh authored
5 # which gives you a prettier way to test for equality. Example:
6 #
7 # env = "production".inquiry
8 # env.production? # => true
9 # env.development? # => false
10 def inquiry
11 ActiveSupport::StringInquirer.new(self)
12 end
13 end
Something went wrong with that request. Please try again.