lib/hanami/view/rendering/scope.rb in hanami-view-0.6.1 vs lib/hanami/view/rendering/scope.rb in hanami-view-0.7.0
- old
+ new
@@ -19,10 +19,13 @@
# @option locals [Symbol] :format the requested format
#
# @api private
# @since 0.1.0
def initialize(view, locals = {})
- @view, @locals, @layout = view, locals, layout
+ @view = view
+ @locals = locals
+ @layout = layout
+ @scope = nil
end
# Returns an inspect String
#
# @return [String] inspect String (contains classname, objectid in hex, available ivars)