Method: Color::Palette::AdobeColor.from_file
- Defined in:
- lib/color/palette/adobecolor.rb
permalink .from_file(filename) ⇒ Object
Create an AdobeColor palette object from the named file.
25 26 27 |
# File 'lib/color/palette/adobecolor.rb', line 25 def from_file(filename) File.open(filename, "rb") { |io| Color::Palette::AdobeColor.from_io(io) } end |