Class: SimpleStringIO
Instance Attribute Summary collapse
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize ⇒ SimpleStringIO
constructor
A new instance of SimpleStringIO.
- #write(str) ⇒ Object
Constructor Details
#initialize ⇒ SimpleStringIO
Returns a new instance of SimpleStringIO.
97 |
# File 'lib/mega/ioredirect.rb', line 97 def initialize; @str = ''; end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
96 97 98 |
# File 'lib/mega/ioredirect.rb', line 96 def str @str end |
Instance Method Details
#write(str) ⇒ Object
98 |
# File 'lib/mega/ioredirect.rb', line 98 def write(str); @str << str; end |