class Gradient::OpacityPoint
Attributes
location[R]
opacity[R]
Public Class Methods
new(location, opacity)
click to toggle source
# File lib/gradient/opacity_point.rb, line 4 def initialize(location, opacity) @location, @opacity = location, opacity end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/gradient/opacity_point.rb, line 7 def <=>(other) self.location <=> other.location end