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.
100 |
# File 'lib/more/facets/ioredirect.rb', line 100 def initialize; @str = ''; end |
Instance Attribute Details
#str ⇒ Object (readonly)
Returns the value of attribute str.
99 100 101 |
# File 'lib/more/facets/ioredirect.rb', line 99 def str @str end |
Instance Method Details
#write(str) ⇒ Object
101 |
# File 'lib/more/facets/ioredirect.rb', line 101 def write(str); @str << str; end |