Sha256: 3bd04ce7cdc561affa89f9b5ca0e5a5001ca451888ee9f262b69da877ed680ce
Contents?: true
Size: 411 Bytes
Versions: 61
Compression:
Stored size: 411 Bytes
Contents
# encoding: utf-8 module FeduxOrgStdlib class ProcessEnvironment private attr_reader :environment public def initialize(environment = ENV) @environment = environment end def fetch(key, default_value = nil) environment.to_hash.symbolize_keys.fetch(key.to_sym, default_value).to_s end def write(key, value) environment[key.to_s] = value end end end
Version data entries
61 entries across 61 versions & 1 rubygems