Permalink
Browse files

alias << to out

  • Loading branch information...
1 parent 94b5bce commit 36a8110e48ab23199f68e33def3a03a98258124e Sven Fuchs committed Aug 22, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/minimal/template.rb
View
@@ -30,6 +30,7 @@ def _render(locals = nil, format = :html, &block)
def <<(output)
view.output_buffer << output
end
+ alias :output :<<
def respond_to?(method)
view.respond_to?(method) || locals.key?(method) || view.instance_variable_defined?("@#{method}")

0 comments on commit 36a8110

Please sign in to comment.