Sha256: e983b8f2c5c5ccbec7e39549b408a3a707af9ea3346f56e51606697282071f23
Contents?: true
Size: 299 Bytes
Versions: 3
Compression:
Stored size: 299 Bytes
Contents
module ServerHere class EnvInspector def initialize app @app = app end def call env puts env.sort.map{|k,v| "#{green(k)} => #{v}"}.join("\n") @app.call env end def green str "\e[32m#{str}\e[0m" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
server_here-0.1.2 | lib/server_here/env_inspector.rb |
server_here-0.1.1 | lib/server_here/env_inspector.rb |
server_here-0.1.0 | lib/server_here/env_inspector.rb |