lib/roda/plugins/render.rb
# Copy the rendering options into the subclass, duping
# them as necessary to prevent changes in the subclass
# affecting the parent class.
Copy the rendering options into the subclass, duping
them as necessary to prevent changes in the subclass
affecting the parent class.
Copy the rendering options into the subclass duping them as necessary to prevent changes in the subclass affecting the parent class .
def inherited(subclass)
          super
          opts = subclass.opts[:render] = subclass.opts[:render].dup
          opts[:cache] = opts[:cache].dup
          opts.freeze
        end
def inherited ( subclass ) super opts = subclass . opts [ :render ] = subclass . opts [ :render ] . dup opts [ :cache ] = opts [ :cache ] . dup opts . freeze end
Copy the rendering options into the subclass, duping
them as necessary to prevent changes in the subclass
affecting the parent class.
Copy the rendering options into the subclass duping them as necessary to prevent changes in the subclass affecting the parent class .
subclass
<not_specific>