Class: IDL::StrOStream

Inherits:
Object
  • Object
show all
Defined in:
lib/ridlbe/ruby/config.rb

Instance Method Summary collapse

Constructor Details

#initializeStrOStream

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

#clearObject



19
20
21
# File 'lib/ridlbe/ruby/config.rb', line 19

def clear
  @str = ''
end

#to_sObject



23
24
25
# File 'lib/ridlbe/ruby/config.rb', line 23

def to_s
  @str
end