Sha256: 2b9d5743f99253ec2c871b4668355fd7d70d3fd2e6942fb9848055f2926eeaca

Contents?: true

Size: 312 Bytes

Versions: 18

Compression:

Stored size: 312 Bytes

Contents

= String Extensions

In addition the library offers an extension to String class
called #ansi, which allows some of the ANSI::Code methods
to be called in a more object-oriented fashion.

  require 'ansi/core'

  str = "Hello".ansi(:red) + "World".ansi(:blue)
  str.assert == "\e[31mHello\e[0m\e[34mWorld\e[0m"

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-1.0.0 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
swipe-rails-0.0.5 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-1.0.0.beta3 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-1.0.0.beta2 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-1.0.0.beta vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-0.9.1.beta.3 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-0.9.1.beta vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-0.9.0 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
challah-0.8.3 vendor/bundle/gems/ansi-1.4.3/demo/02_core.rdoc
ansi-1.4.3 demo/02_core.rdoc
challah-0.6.1 vendor/bundle/gems/ansi-1.4.2/qed/02_core.rdoc
challah-0.6.0 vendor/bundle/gems/ansi-1.4.2/qed/02_core.rdoc
ansi-1.4.2 qed/02_core.rdoc
ansi-1.4.1 qed/10_core.rdoc
ansi-1.4.0 qed/10_core.rdoc
ansi-1.3.0 qed/10_core.rdoc