String Builder
str = String.build do |temp|
temp << "hello "
temp << 1
end
puts str # => "hello 1"
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
str = String.build do |temp|
temp << "hello "
temp << 1
end
puts str # => "hello 1"