Skip to content

Commit

Permalink
Remove trailing whitespaces inside map.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevallin committed Jan 9, 2016
1 parent 25fc901 commit 84b8022
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/gradient/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def inspect
end

def range
@range ||=
@range ||=
begin
ends = [:first, :last]
.map { |method| points.send(method) }
Expand Down Expand Up @@ -52,7 +52,7 @@ def as_json(json={})
serialize
end

private
private

def interpolate_points(point_left, point_right, location)
points = [point_left, point_right]
Expand All @@ -69,7 +69,7 @@ def interpolate_points(point_left, point_right, location)
weight)
end
color = Color::RGB.from_fraction(r, g, b)
opacity = interpolate_floats(point_left.opacity,
opacity = interpolate_floats(point_left.opacity,
point_right.opacity,
weight)
Point.new(location, color, opacity)
Expand Down

0 comments on commit 84b8022

Please sign in to comment.