Class Pastel::Detached
In: lib/pastel/detached.rb
Parent: Object

A class representing detached color

Methods

[]   call   new   to_proc  

Included Modules

Equatable

Attributes

styles  [R]  @api private

Public Class methods

Initialize a detached object

@param [Pastel::Color] color

  the color instance

@param [Array[Symbol]] styles

  the styles to be applied

@api private

Public Instance methods

[](*args)

Alias for call

Decorate the values corresponding to styles

@example

@param [String] value

  the stirng to decorate with styles

@return [String]

@api public

@api public

[Validate]