Class: Quartz::ColorSpace

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyquartz/colorspace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ColorSpace

Returns a new instance of ColorSpace.



31
32
33
34
35
36
37
38
39
# File 'lib/rubyquartz/colorspace.rb', line 31

def initialize(options)
  @name = options[:name]
  if @name
    _init_with_name(@name)
  else
    # TODO: Add various other creation types
    raise "Cannot determine how to create colorspace from given options"
  end
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



29
30
31
# File 'lib/rubyquartz/colorspace.rb', line 29

def name
  @name
end