Module: Ruboty::Env::Validatable::ClassMethods

Defined in:
lib/ruboty/env/validatable.rb

Instance Method Summary collapse

Instance Method Details

#env(key, description, options = {}) ⇒ Object


11
12
13
# File 'lib/ruboty/env/validatable.rb', line 11

def env(key, description, options = {})
  envs << Env.new(key, description, options)
end

#envsObject


7
8
9
# File 'lib/ruboty/env/validatable.rb', line 7

def envs
  @envs ||= []
end

#usageObject


15
16
17
# File 'lib/ruboty/env/validatable.rb', line 15

def usage
  envs.map(&:to_usage).join("\n")
end