Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/colorist/core_extensions.rb
Instance Method Summary collapse
-
#to_color ⇒ Object
Converts a hexadecimal number into a Color.
Instance Method Details
#to_color ⇒ Object
Converts a hexadecimal number into a Color. Must be the equivalent of the full hexadecimal form (for example, 0x123456).
5 6 7 |
# File 'lib/colorist/core_extensions.rb', line 5 def to_color Colorist::Color.new(self) end |