Class: String

### Home Classes Methods

### In Files

- lib/ansi/core.rb

### Parent

Object

### Methods

- #ansi
- #ansi!
- #unansi
- #unansi!

### Files

- COPYING.rdoc
- DEMO.rdoc
- HISTORY.rdoc
- README.rdoc

### Class/Module Index

Quicksearch

- ANSI
- ANSI::BBCode
- ANSI::Chain
- ANSI::Code
- ANSI::Columns
- ANSI::Constants
- ANSI::Diff
- ANSI::HexDump
- ANSI::Logger
- ANSI::Mixin
- ANSI::ProgressBar
- ANSI::String
- ANSI::Table
- ANSI::Terminal
- Object
- String

No matching classes.

# String

### Public Instance Methods

ansi(*codes) click to toggle source

    # File lib/ansi/core.rb, line 7
    def ansi(*codes)
      if codes.empty?
        ANSI::Chain.new(self)
      else
        ANSI::Code.ansi(self, *codes)
      end
    end

ansi!(*codes) click to toggle source

    # File lib/ansi/core.rb, line 16
    def ansi!(*codes)
      replace(ansi(*codes))
    end

unansi() click to toggle source

    # File lib/ansi/core.rb, line 21
    def unansi
      ANSI::Code.unansi(self)
    end

unansi!() click to toggle source

    # File lib/ansi/core.rb, line 26
    def unansi!
      replace(unansi)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.