Class: Cheat::Controllers::APIAll
- Inherits:
-
R
- Object
- R
- Cheat::Controllers::APIAll
- Defined in:
- lib/cheat/site.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
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 |