Class: Prawn::Graphics::Patterns::GradientStop

Inherits:
Struct
  • Object
show all
Defined in:
lib/prawn/graphics/patterns.rb

Overview

Gradient color stop.

Instance Attribute Summary collapse

Instance Attribute Details

#colorObject

Returns the value of attribute color

Returns:

  • (Object)

    the current value of color



11
12
13
# File 'lib/prawn/graphics/patterns.rb', line 11

def color
  @color
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



11
12
13
# File 'lib/prawn/graphics/patterns.rb', line 11

def position
  @position
end