class RenderedTemplate # :nodoc:
attr_reader :body, :template
def initialize(body, template)
@body = body
@template = template
end
def format
template.format
end
EMPTY_SPACER = Struct.new(:body).new
end
Why is the template in the format method not @template and an instance variable?
Recommended Posts