Sha256: 85ed261da14aee88217f584eb9931ba1ecfc0e85c631cc76e6cfc2b7608b987e
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true module Envlogic # String refinements used in this library module StringRefinements # Postfix for ENV keys ENV_KEY_POSTFIX = '_ENV'.freeze refine String do # Converts any string into a bash ENV key def to_env_key underscore .tr('/', '_') .upcase + Envlogic::StringRefinements::ENV_KEY_POSTFIX end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
envlogic-1.0.1 | lib/envlogic/string_refinements.rb |