Public Instance methods
assets()
Render the matching asset if this is a GET request for a supported asset.
[show source]
# File lib/roda/plugins/assets.rb 931 def assets 932 if is_get? 933 self.class.assets_matchers.each do |type, matcher| 934 is matcher do |file| 935 scope.render_asset(file, type) 936 end 937 end 938 nil 939 end 940 end