Class: RuPov::Textures::Pigments::Pigment

Inherits:
Base
  • Object
show all
Defined in:
lib/rupov.rb

Direct Known Subclasses

ColourList, SolidColour

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#<<, #to_s

Constructor Details

#initialize {|_self| ... } ⇒ Pigment

Returns a new instance of Pigment.

Yields:

  • (_self)

Yield Parameters:



299
300
301
302
# File 'lib/rupov.rb', line 299

def initialize
    super( 'pigment' )
    yield(self) if block_given? and self.class == Pigment
end