Class: Trollop::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/bourdain/resources.rb

Instance Method Summary collapse

Instance Method Details

#format_resources(rs) ⇒ Object



95
96
97
98
99
100
# File 'lib/bourdain/resources.rb', line 95

def format_resources rs
  rs.map do |r|
    "\n#{r.capitalize}s:\n" +
    Bourdain::Registry.details(r) * "\n" + "\n"
  end.join("\n")
end