class YARR

Attributes

interpreter[R]

Public Class Methods

new(args = {}) click to toggle source
# File lib/yarr.rb, line 8
def initialize(args = {})
  $stdout.sync = true
  @interpreter = args.fetch(:interpreter) { Interpreter.new }
end

Public Instance Methods

call() click to toggle source
# File lib/yarr.rb, line 13
def call
  banner
  loop do
    puts interpreter.call
  end
end

Private Instance Methods

banner() click to toggle source