Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/amun/helpers/colors.rb
Overview
for easier printing of colored string on the screen we can add color property to any string and then use it to print the string on the screen
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
102 103 104 |
# File 'lib/amun/helpers/colors.rb', line 102 def color @color end |
#style ⇒ Object
Returns the value of attribute style.
102 103 104 |
# File 'lib/amun/helpers/colors.rb', line 102 def style @style end |