Class Pastel::Delegator
In: lib/pastel/delegator.rb
Parent: Object

Wrapes the {DecoratorChain} to allow for easy resolution of string coloring.

@api private

Methods

Included Modules

Equatable

External Aliases

parse -> undecorate

Attributes

base  [R] 
resolver  [R] 

Public Class methods

Create Delegator

Used internally by {Pastel}

@param [ColorResolver] resolver

@param [DecoratorChain] base

@api private

Public Instance methods

Object string representation

@return [String]

@api

to_s()

Alias for inspect

Protected Instance methods

Evaluate color block

@api private

Wrap colors

@api private

[Validate]