From: Intransition Date: 2011-12-04T11:44:11+09:00 Subject: Re: ANSI v1.4.0 released ------=_Part_293_11636440.1322966649106 Content-Type: multipart/alternative; boundary="----=_Part_294_18431918.1322966649106" ------=_Part_294_18431918.1322966649106 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Fluid notation can be nice and simple, but it also has limitations. If you want to dynamically change the ansi code, it will be less elegant: background = :green foreground = :red puts "Hello World".to_ansi.send("#{background}_background").send(foreground) Where as ANSI: puts "Hello World".ansi("on_#{background}", foreground) Rather than have Yet Another ANSI gem (there are at least three others besides ansi) why not contribute to existing gem? ------=_Part_294_18431918.1322966649106 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Fluid notation can be nice and simple, but it also has limitations. If you want to dynamically change the ansi code, it will be less elegant:

  background = :green
  foreground = :red

  puts "Hello World".to_ansi.send("#{background}_background").send(foreground)

Where as ANSI:

  puts "Hello World".ansi("on_#{background}", foreground)

Rather than have Yet Another ANSI gem (there are at least three others besides ansi) why not contribute to existing gem?

------=_Part_294_18431918.1322966649106-- ------=_Part_293_11636440.1322966649106--