summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/one_cell_anchor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/axlsx/drawing/one_cell_anchor.rb')
-rw-r--r--lib/axlsx/drawing/one_cell_anchor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/one_cell_anchor.rb b/lib/axlsx/drawing/one_cell_anchor.rb
index c17f4a25..52cf2244 100644
--- a/lib/axlsx/drawing/one_cell_anchor.rb
+++ b/lib/axlsx/drawing/one_cell_anchor.rb
@@ -14,7 +14,7 @@ module Axlsx
# @option options [String] image_src the file location of the image you will render
# @option options [String] name the name attribute for the rendered image
# @option options [String] descr the description of the image rendered
- def initialize(drawing, options={})
+ def initialize(drawing, options = {})
@drawing = drawing
@width = 0
@height = 0
@@ -52,7 +52,7 @@ module Axlsx
# We just 'figure it out' for you.
# @param [Array, String, Cell, Integer] x Accepts many inputs for defining the starting position of the cell.
# @param [Integer] y When x is an integer, this value is used for the row index at which the anchor starts.
- def start_at(x, y=0)
+ def start_at(x, y = 0)
from.coord x, y
end
@@ -91,7 +91,7 @@ module Axlsx
def ext
cy = @height * 914400 / 96
cx = @width * 914400 / 96
- {:cy=>cy, :cx=>cx}
+ { :cy => cy, :cx => cx }
end
end
end