Class: Vedeu::Colour
- Inherits:
-
Object
- Object
- Vedeu::Colour
- Defined in:
- lib/vedeu/models/colour.rb
Instance Method Summary collapse
Instance Method Details
#background ⇒ Object
17 18 19 |
# File 'lib/vedeu/models/colour.rb', line 17 def background @bg ||= Esc.background_colour(css_background) end |
#foreground ⇒ Object
13 14 15 |
# File 'lib/vedeu/models/colour.rb', line 13 def foreground @fg ||= Esc.foreground_colour(css_foreground) end |
#to_json(*args) ⇒ Object
21 22 23 |
# File 'lib/vedeu/models/colour.rb', line 21 def to_json(*args) as_hash.to_json end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/vedeu/models/colour.rb', line 25 def to_s foreground + background end |