Permalink
Browse files

Can use ||= on @root now that it is initialized

  • Loading branch information...
1 parent 7920c2e commit 0d826238ee15fe6e78eede0ea149f332f5a76f71 @mikel committed Mar 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/treetop/compiler/metagrammar.rb
@@ -7,7 +7,7 @@ module Metagrammar
include Treetop::Runtime
def root
- @root || :treetop_file
+ @root ||= :treetop_file
end
module TreetopFile0

0 comments on commit 0d82623

Please sign in to comment.