Method: Clutter::Color.new

Defined in:
lib/clutter/color.rb

.new(*args) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/clutter/color.rb', line 24

def new(*args)
  if [Symbol] == args.collect(&:class)
    name = args[0]
    get_static(name)
  else
    if args.empty?
      args = [0, 0, 0, 1] unless private_method_defined?(:initialize_alloc)
    end
    super(*args)
  end
end