Permalink
Browse files

Missed a few ivars

  • Loading branch information...
1 parent 63a1ef4 commit 15e5f9945774a66fb2d98dcdd5389554fc83b0ed @practicingruby practicingruby committed Jan 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/turing_tarpit/scanner.rb
@@ -6,11 +6,11 @@ def initialize(chars)
end
def current_char
- @chars[@index]
+ chars[index]
end
def validate_index
- raise StopIteration if @chars.length == @index
+ raise StopIteration if chars.length == index
end
def consume

0 comments on commit 15e5f99

Please sign in to comment.