Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/colorist/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_colorObject

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