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