Class: Teri::IOAdapter
- Inherits:
-
Object
- Object
- Teri::IOAdapter
- 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
#gets ⇒ Object
24 25 26 |
# File 'lib/teri/accounting.rb', line 24 def gets $stdin.gets end |
#print(message) ⇒ Object
20 21 22 |
# File 'lib/teri/accounting.rb', line 20 def print() Kernel.print end |
#puts(message) ⇒ Object
16 17 18 |
# File 'lib/teri/accounting.rb', line 16 def puts() Kernel.puts end |