Class: Cheat::Controllers::APIAll

Inherits:
R
  • Object
show all
Defined in:
lib/cheat/site.rb

Instance Method Summary collapse

Instance Method Details

#getObject



90
91
92
93
94
95
# File 'lib/cheat/site.rb', line 90

def get
  @headers['Content-Type'] = 'text/plain'

  sheets = Sheet.sort_by(&:title).map(&:title)
  return { 'All Cheat Sheets' => sheets }.to_yaml
end