Class: Colours::Eparse

Inherits:
Object
  • Object
show all
Defined in:
lib/colours/eparse/eparse.rb

Overview

#

Colours::Eparse

This is mostly a helper-class. It is not really in use, but it exists so that other classes can query the colour definitions, stored as constants, and methods, respectively.

#

Constant Summary collapse

FIRST_COLOUR =
#

Colours::Eparse::FIRST_COLOUR

#
COLOUR_GREEN
SECOND_COLOUR =
#

Colours::Eparse::SECOND_COLOUR

#
COLOUR_TEAL

Class Method Summary collapse

Class Method Details

.colour_left(i = '') ⇒ Object

#

Colours::Eparse.colour_left

#


35
36
37
# File 'lib/colours/eparse/eparse.rb', line 35

def self.colour_left(i = '')
  return "#{FIRST_COLOUR}#{i}#{REVERT}"
end

.colour_right(i = '') ⇒ Object

#

Colours::Eparse.colour_right

#


42
43
44
# File 'lib/colours/eparse/eparse.rb', line 42

def self.colour_right(i = '')
  return "#{SECOND_COLOUR}#{i}#{REVERT}"
end