module Roda::RodaPlugins::Render::ClassMethods
Public Instance Methods
inherited(subclass)
click to toggle source
Copy the rendering options into the subclass, duping them as necessary to prevent changes in the subclass affecting the parent class.
Calls superclass method
# File lib/roda/plugins/render.rb, line 107 def inherited(subclass) super opts = subclass.opts[:render] = render_opts.dup opts[:layout_opts] = opts[:layout_opts].dup opts[:opts] = opts[:opts].dup opts[:cache] = thread_safe_cache if opts[:cache] end
render_opts()
click to toggle source
Return the render options for this class.
# File lib/roda/plugins/render.rb, line 116 def render_opts opts[:render] end