Class: Cotcube::Helpers::SimpleOutput
- Inherits:
-
Object
- Object
- Cotcube::Helpers::SimpleOutput
- Defined in:
- lib/cotcube-helpers/simple_output.rb
Overview
SimpleOutput is a very basic outputhandler, which is actually only there to mock output handling until
a more sophisticated solution is available (e.g. OutPutHandler gem is reworked and tested )
Instance Method Summary collapse
-
#print(msg) ⇒ Object
(also: #print!)
…
-
#puts(msg) ⇒ Object
(also: #puts!)
…
-
#superprint ⇒ Object
Aliasing puts and print, as they are included / inherited (?) from IO.
-
#superputs ⇒ Object
Aliasing puts and print, as they are included / inherited (?) from IO.
Instance Method Details
#print(msg) ⇒ Object Also known as: print!
…
19 20 21 |
# File 'lib/cotcube-helpers/simple_output.rb', line 19 def print(msg) superprint msg end |
#puts(msg) ⇒ Object Also known as: puts!
…
14 15 16 |
# File 'lib/cotcube-helpers/simple_output.rb', line 14 def puts(msg) superputs msg end |
#superprint ⇒ Object
Aliasing puts and print, as they are included / inherited (?) from IO
11 |
# File 'lib/cotcube-helpers/simple_output.rb', line 11 alias_method :superprint, :print |
#superputs ⇒ Object
Aliasing puts and print, as they are included / inherited (?) from IO
9 |
# File 'lib/cotcube-helpers/simple_output.rb', line 9 alias_method :superputs, :puts |