Sha256: d91811ec5a9988c097f2938304e59c26c67078fa3bc2c8645c05c2c9f478ec1e
Contents?: true
Size: 434 Bytes
Versions: 70
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true require "active_support/string_inquirer" require "active_support/environment_inquirer" class String # Wraps the current string in the ActiveSupport::StringInquirer 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
70 entries across 68 versions & 11 rubygems