Permalink
Browse files

Tiny refactoring.

  • Loading branch information...
1 parent cf24498 commit f845b37b563fb32a6e135e73d6f481de12d7f29a @gilesbowkett committed Oct 7, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/view.rb
View
@@ -1,6 +1,7 @@
class View
+ R2R = Ruby2Ruby.new
def to_ruby(nodes)
- Ruby2Ruby.new.process(nodes) + "\n"
+ R2R.process(nodes) + "\n"
end
def render(options = {})
ERB.new(File.read("#{File.dirname(__FILE__) + "/" + options[:template]}"), nil, "-").result(binding)

0 comments on commit f845b37

Please sign in to comment.