Class: Cotcube::Helpers::SimpleOutput

Inherits:
Object
  • Object
show all
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

Instance Method Details



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

#superprintObject

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

#superputsObject

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