class Lox::Formatter
Attributes
objects[R]
Public Class Methods
new(objects)
click to toggle source
# File lib/lox/formatter.rb, line 7 def initialize(objects) @objects = objects end
Public Instance Methods
each(&block)
click to toggle source
# File lib/lox/formatter.rb, line 11 def each(&block) objects.lazy.map(&:inspect).each(&block) end