# File lib/rabl/helpers.rb, line 123 def object_to_engine(object, options = {}, &block) return if object.nil? options.reverse_merge!({ :format => "hash".freeze, :view_path => view_path, :root => (options[:root] || false) }) Engine.new(options[:source], options).apply(context_scope, :object => object, :locals => options[:locals], &block) end