summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/two_cell_anchor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/axlsx/drawing/two_cell_anchor.rb')
-rw-r--r--lib/axlsx/drawing/two_cell_anchor.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/drawing/two_cell_anchor.rb b/lib/axlsx/drawing/two_cell_anchor.rb
index aa38c3db..7b77de13 100644
--- a/lib/axlsx/drawing/two_cell_anchor.rb
+++ b/lib/axlsx/drawing/two_cell_anchor.rb
@@ -30,10 +30,10 @@ module Axlsx
# @param [Drawing] drawing
# @option options [Array] :start_at the col, row to start at THIS IS DOCUMENTED BUT NOT IMPLEMENTED HERE!
# @option options [Array] :end_at the col, row to end at
- def initialize(drawing, options={})
+ def initialize(drawing, options = {})
@drawing = drawing
drawing.anchors << self
- @from, @to = Marker.new, Marker.new(:col => 5, :row=>10)
+ @from, @to = Marker.new, Marker.new(:col => 5, :row => 10)
parse_options options
# bit of a hack to work around the fact that the coords for start at and end at
@@ -46,7 +46,7 @@ module Axlsx
# @note The recommended way to set the start position for graphical
# objects is directly thru the object.
# @see Chart#start_at
- def start_at(x, y=nil)
+ def start_at(x, y = nil)
from.coord x, y
end
@@ -54,7 +54,7 @@ module Axlsx
# @note the recommended way to set the to position for graphical
# objects is directly thru the object
# @see Char#end_at
- def end_at(x, y=nil)
+ def end_at(x, y = nil)
to.coord x, y
end
@@ -66,7 +66,7 @@ module Axlsx
end
# Creates an image associated with this anchor.
- def add_pic(options={})
+ def add_pic(options = {})
@object = Pic.new(self, options)
end