Class: Teri::IOAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/teri/accounting.rb

Overview

IO adapter for handling input/output operations This allows for better testing by injecting a test adapter

Instance Method Summary collapse

Instance Method Details

#getsObject



24
25
26
# File 'lib/teri/accounting.rb', line 24

def gets
  $stdin.gets
end


20
21
22
# File 'lib/teri/accounting.rb', line 20

def print(message)
  Kernel.print message
end

#puts(message) ⇒ Object



16
17
18
# File 'lib/teri/accounting.rb', line 16

def puts(message)
  Kernel.puts message
end