Module: Ellen::Env::Validatable::ClassMethods
- Defined in:
- lib/ellen/env/validatable.rb
Instance Method Summary collapse
Instance Method Details
#env(key, description, options = {}) ⇒ Object
11 12 13 |
# File 'lib/ellen/env/validatable.rb', line 11 def env(key, description, = {}) envs << Env.new(key, description, ) end |
#envs ⇒ Object
7 8 9 |
# File 'lib/ellen/env/validatable.rb', line 7 def envs @envs ||= [] end |
#usage ⇒ Object
15 16 17 |
# File 'lib/ellen/env/validatable.rb', line 15 def usage envs.map(&:to_usage).join("\n") end |