Class: IDL::StrOStream
- Inherits:
-
Object
- Object
- IDL::StrOStream
- Defined in:
- lib/ridlbe/ruby/config.rb
Instance Method Summary collapse
- #<<(s) ⇒ Object
- #clear ⇒ Object
-
#initialize ⇒ StrOStream
constructor
A new instance of StrOStream.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ StrOStream
Returns a new instance of StrOStream.
15 16 17 |
# File 'lib/ridlbe/ruby/config.rb', line 15 def initialize @str = '' end |
Instance Method Details
#<<(s) ⇒ Object
27 28 29 |
# File 'lib/ridlbe/ruby/config.rb', line 27 def <<(s) @str << s end |
#clear ⇒ Object
19 20 21 |
# File 'lib/ridlbe/ruby/config.rb', line 19 def clear @str = '' end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/ridlbe/ruby/config.rb', line 23 def to_s @str end |