mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
184 B
Ruby
16 lines
184 B
Ruby
![]() |
require 'stringio'
|
||
|
|
||
|
class StringSubclass < String; end
|
||
|
|
||
|
module StringIOSpecs
|
||
|
def self.build
|
||
|
str = <<-EOS
|
||
|
each
|
||
|
peach
|
||
|
pear
|
||
|
plum
|
||
|
EOS
|
||
|
StringIO.new(str)
|
||
|
end
|
||
|
end
|