Sha256: 45238c6305c57ac1e3076566a9d1f399064dc0d1217da0efa73254a71d8d3f6d

Contents?: true

Size: 366 Bytes

Versions: 184

Compression:

Stored size: 366 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.
  #
  #   env = 'production'.inquiry
  #   env.production?  # => true
  #   env.development? # => false
  def inquiry
    ActiveSupport::StringInquirer.new(self)
  end
end

Version data entries

184 entries across 176 versions & 18 rubygems

Version Path
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/string/inquiry.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/string/inquiry.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/string/inquiry.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/string/inquiry.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.5/lib/active_support/core_ext/string/inquiry.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.0.beta1 lib/active_support/core_ext/string/inquiry.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.2.4/lib/active_support/core_ext/string/inquiry.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/activesupport-4.1.13/lib/active_support/core_ext/string/inquiry.rb
activesupport-4.1.14 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.5 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.5.rc2 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.1.14.rc2 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.5.rc1 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.1.14.rc1 lib/active_support/core_ext/string/inquiry.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.4 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.1.13 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.4.rc1 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.1.13.rc1 lib/active_support/core_ext/string/inquiry.rb