Top Level Namespace
Defined Under Namespace
Modules: Peas Classes: API, Git
Instance Method Summary collapse
Instance Method Details
#format_settings(hash) ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/peas/commands/admin.rb', line 1 def format_settings(hash) puts "Available settings" puts '' hash['message'].each do |type, settings| puts "#{type.capitalize}:" settings.each do |setting, value| value = '[unset]' if value == '' puts " #{setting} #{value}" end puts '' end end |