Skip to content

Commit

Permalink
Merge pull request #7 from vipulnsward/remove_overshadow
Browse files Browse the repository at this point in the history
change `element` to `ele` to remove overshadowing
  • Loading branch information
rkh committed May 12, 2013
2 parents d8808ce + 1b71271 commit 5ed86c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mustermann/ast/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def read
# @return [Mustermann::AST::Node] node with suffix
# @!visibility private
def read_suffix(element)
self.class.suffix.inject(element) do |element, (regexp, callback)|
next element unless payload = scan(regexp)
instance_exec(payload, element, &callback)
self.class.suffix.inject(element) do |ele, (regexp, callback)|
next ele unless payload = scan(regexp)
instance_exec(payload, ele, &callback)
end
end

Expand Down

0 comments on commit 5ed86c2

Please sign in to comment.