class Lox::Scanner
Attributes
input[R]
Public Class Methods
new(input)
click to toggle source
# File lib/lox/scanner.rb, line 7 def initialize(input) @input = input end
Public Instance Methods
each_char() { |character| ... }
click to toggle source
# File lib/lox/scanner.rb, line 11 def each_char return enum_for(:each_char) unless block_given? input.each_line do |line| line.each_char do |character| yield(character) end end end