Class: LittleWheels::Buffer

Inherits:
Object
  • Object
show all
Defined in:
lib/little_wheels.rb

Instance Method Summary collapse

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_sObject



13
# File 'lib/little_wheels.rb', line 13

def to_s     = @string