Sha256: 3597c628767ead56fcdb8310ed95d807e2113471bde38e828ad944dc2a6fdf30

Contents?: true

Size: 375 Bytes

Versions: 269

Compression:

Stored size: 375 Bytes

Contents

require 'active_support/string_inquirer'

class String
  # Wraps the current string in the <tt>ActiveSupport::StringInquirer</tt> class,
  # which gives you a prettier way to test for equality. Example:
  #
  #   env = "production".inquiry
  #   env.production?  # => true
  #   env.development? # => false
  def inquiry
    ActiveSupport::StringInquirer.new(self)
  end
end

Version data entries

269 entries across 225 versions & 25 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22.5 lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22.4 lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22.3 lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22.2 lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22.1 lib/active_support/core_ext/string/inquiry.rb
classiccms-0.7.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inquiry.rb
classiccms-0.7.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inquiry.rb
classiccms-0.7.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inquiry.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.22 lib/active_support/core_ext/string/inquiry.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.12/lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.21 lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/string/inquiry.rb
activesupport-3.2.20 lib/active_support/core_ext/string/inquiry.rb