Class: Dotenvious::EnvAppender
- Inherits:
-
Object
- Object
- Dotenvious::EnvAppender
- Defined in:
- lib/dotenvious/env_appender.rb
Instance Method Summary collapse
- #append(key) ⇒ Object
-
#initialize(filename) ⇒ EnvAppender
constructor
A new instance of EnvAppender.
Constructor Details
#initialize(filename) ⇒ EnvAppender
Returns a new instance of EnvAppender.
3 4 5 |
# File 'lib/dotenvious/env_appender.rb', line 3 def initialize(filename) @filename = filename end |
Instance Method Details
#append(key) ⇒ Object
7 8 9 10 |
# File 'lib/dotenvious/env_appender.rb', line 7 def append(key) env.write("#{key}=#{ENV_EXAMPLE[key]}\n") env.close end |