Class: XclipBuffer
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
- #append!(string) ⇒ Object
-
#initialize ⇒ XclipBuffer
constructor
A new instance of XclipBuffer.
Constructor Details
#initialize ⇒ XclipBuffer
Returns a new instance of XclipBuffer.
9 10 11 |
# File 'lib/ompload.rb', line 9 def initialize @content = '' end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/ompload.rb', line 7 def content @content end |
Instance Method Details
#append!(string) ⇒ Object
13 14 15 |
# File 'lib/ompload.rb', line 13 def append!(string) @content += "#{string}\n" end |