Sha256: 88c69cac891b0f63d5a65598866d9bd2c6e4b82e8d45a5a416a43375ec0fd421

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

# encoding: utf-8
module Filegen
  class Env
    ENV.to_hash.each do |name,value|
      define_method name.downcase.gsub(/[^a-z0-9]/, '_').to_sym do
        value
      end
    end

    def my_binding
      binding
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
filegen-0.0.1 lib/filegen/env.rb