Class: LittleWheels::Buffer
- Inherits:
-
Object
- Object
- LittleWheels::Buffer
- Defined in:
- lib/little_wheels.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.
8 9 10 |
# File 'lib/little_wheels.rb', line 8 def initialize(string) @string = string.html_safe end |
Instance Method Details
#+(other) ⇒ Object
12 |
# File 'lib/little_wheels.rb', line 12 def +(other) = self.class.new(@string + other.to_s) |
#to_s ⇒ Object
13 |
# File 'lib/little_wheels.rb', line 13 def to_s = @string |