Class: RBS::UnitTest::Convertibles::ToIO

Inherits:
BlankSlate
  • Object
show all
Defined in:
lib/rbs/unit_test/convertibles.rb

Instance Method Summary collapse

Methods inherited from BlankSlate

#__with_object_methods

Constructor Details

#initialize(io = $stdout) ⇒ ToIO

Returns a new instance of ToIO.



24
25
26
# File 'lib/rbs/unit_test/convertibles.rb', line 24

def initialize(io = $stdout)
  @io = io
end

Instance Method Details

#to_ioObject



28
29
30
# File 'lib/rbs/unit_test/convertibles.rb', line 28

def to_io
  @io
end