Class: Swatchman::Image
- Inherits:
-
Object
- Object
- Swatchman::Image
- Defined in:
- lib/swatchman/image.rb
Instance Method Summary collapse
-
#initialize(path_or_url) ⇒ Image
constructor
A new instance of Image.
- #palette(size: 3) ⇒ Object
Constructor Details
#initialize(path_or_url) ⇒ Image
Returns a new instance of Image.
6 7 8 |
# File 'lib/swatchman/image.rb', line 6 def initialize(path_or_url) @resource = MiniMagick::Image.open(path_or_url) end |