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
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.11.3 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.11.2 lib/active_support/core_ext/string/inquiry.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/inquiry.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.7.2 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.11.1 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.7.1 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.11 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.7 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.10 lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.10.rc1 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.6 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.6.rc1 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.5 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.5.rc2 lib/active_support/core_ext/string/inquiry.rb
activesupport-5.0.5.rc1 lib/active_support/core_ext/string/inquiry.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/string/inquiry.rb
tdiary-5.0.5 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/string/inquiry.rb
activesupport-4.2.9 lib/active_support/core_ext/string/inquiry.rb