Class: S2P::Component::Buffer
- Inherits:
-
Object
- Object
- S2P::Component::Buffer
- Defined in:
- lib/s2p/component.rb
Instance Method Summary collapse
- #+(other) ⇒ Object
-
#initialize(string) ⇒ Buffer
constructor
A new instance of Buffer.
- #to_s ⇒ Object
Constructor Details
#initialize(string) ⇒ Buffer
Returns a new instance of Buffer.
7 8 9 |
# File 'lib/s2p/component.rb', line 7 def initialize(string) @string = string.html_safe end |
Instance Method Details
#+(other) ⇒ Object
11 |
# File 'lib/s2p/component.rb', line 11 def +(other) = self.class.new(@string + other.to_s) |
#to_s ⇒ Object
12 |
# File 'lib/s2p/component.rb', line 12 def to_s = @string |