Class: Sinatra::Browse::JSON
- Inherits:
-
BrowseFormat
- Object
- BrowseFormat
- Sinatra::Browse::JSON
- Defined in:
- lib/sinatra/browse/format.rb
Instance Method Summary collapse
Methods inherited from BrowseFormat
Constructor Details
This class inherits a constructor from Sinatra::Browse::BrowseFormat
Instance Method Details
#generate ⇒ Object
40 41 42 |
# File 'lib/sinatra/browse/format.rb', line 40 def generate @browse_routes.values.map { |br| br.to_hash(noprocs: true) }.to_json end |