Class: Biblionet::Extractors::StringBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/bookshark/extractors/search.rb

Instance Method Summary collapse

Constructor Details

#initializeStringBuilder

Returns a new instance of StringBuilder.



98
99
100
# File 'lib/bookshark/extractors/search.rb', line 98

def initialize
  @string = []        
end

Instance Method Details

#append(text) ⇒ Object



102
103
104
# File 'lib/bookshark/extractors/search.rb', line 102

def append(text)
  @string << text
end

#buildObject



106
107
108
# File 'lib/bookshark/extractors/search.rb', line 106

def build
  @string.join.to_s
end