Method: Command::Setting#output_value

Defined in:
lib/command/setting.rb

#output_value(name, settings) ⇒ Object



143
144
145
146
147
148
149
150
# File 'lib/command/setting.rb', line 143

def output_value(name, settings)
  scope = get_scope_of_variable_name(name)
  if scope
    puts settings[scope][name]
  else
    output_error("#{name} という変数は存在しません", name)
  end
end