Sha256: 41e824f05b1bcff66917574b3dfafcc7da775504186cd1c9394ffca01968bb23
Contents?: true
Size: 443 Bytes
Versions: 56
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true require "active_support/string_inquirer" require "active_support/environment_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
56 entries across 54 versions & 7 rubygems