Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
module EnvSpecs def self.get_env platform_is_not :mswin do Hash[*`env`.split("\n").map { |e| e.split("=", 2) }.flatten] end end def self.get_current_user platform_is_not :mswin do `whoami`.strip end end end
From the Design Piracy series on my blog: