Class: IOStub
Instance Method Summary collapse
- #flush ⇒ Object
- #print(*str) ⇒ Object
- #printf(format, *args) ⇒ Object
- #puts(*str) ⇒ Object
- #write(*str) ⇒ Object
Instance Method Details
#flush ⇒ Object
20 21 22 |
# File 'lib/mspec/helpers/io.rb', line 20 def flush self end |
#print(*str) ⇒ Object
8 9 10 |
# File 'lib/mspec/helpers/io.rb', line 8 def print(*str) write(str.join + $\.to_s) end |
#printf(format, *args) ⇒ Object
16 17 18 |
# File 'lib/mspec/helpers/io.rb', line 16 def printf(format, *args) self << sprintf(format, *args) end |