Sha256: 29641da7dc2b83445d230f967379b4248480a87c26f01ff7cb5eb864f4d51b38
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
module PopulateEnv module Formatters class EnvShellSection attr_reader :attribute def initialize(attribute) @attribute = attribute end def to_s output = '' if attribute.description attribute.description.each_line do |line| output << "# #{line}\n" end end if attribute.optional? && attribute.value.nil? output << "# " end output << "#{attribute.name}=#{attribute.value}\n" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
populate-env-0.1.0 | lib/populate_env/formatters/env_shell_section.rb |