Class: S2P::Component::Buffer

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

Instance Method Summary collapse

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_sObject



12
# File 'lib/s2p/component.rb', line 12

def to_s     = @string