Method: MindWords#sort

Defined in:
lib/mindwords.rb

#sortObject



264
265
266
267
268
269
270
271
272
273
274
275
# File 'lib/mindwords.rb', line 264

def sort()
  s = @lines.sort.join

  def s.to_s()
    self.lines.map do |x|
      title, hashtags = x.split(/(?=#)/,2)
      title + hashtags.chomp.brown
    end.join("\n")
  end

  return s
end