Sha256: b77dcacc8f22eca9414972c3fd6bfdd80ae690cf586f42681b990afb6cf51ebb
Contents?: true
Size: 397 Bytes
Versions: 99
Compression:
Stored size: 397 Bytes
Contents
# frozen_string_literal: true 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
99 entries across 90 versions & 11 rubygems