# File lib/rabl/renderer.rb, line 46 def render(context_scope = nil) context_scope = context_scope ? context_scope : options.delete(:scope) || self set_instance_variable(object) if context_scope == self locals = options.fetch(:locals, {}).reverse_merge(:object => object) engine.render(context_scope, locals) end