Method: MindWords#sort
- Defined in:
- lib/mindwords.rb
#sort ⇒ Object
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, = x.split(/(?=#)/,2) title + .chomp.brown end.join("\n") end return s end |