Class: Sinatra::Browse::YAML
- Inherits:
-
BrowseFormat
- Object
- BrowseFormat
- Sinatra::Browse::YAML
- 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
46 47 48 |
# File 'lib/sinatra/browse/format.rb', line 46 def generate @browse_routes.values.map { |br| br.to_hash(noprocs: true) }.to_yaml end |