Method: Axlsx::Pic#end_at

Defined in:
lib/axlsx/drawing/pic.rb

#end_at(x, y = nil) ⇒ Marker

noop if not using a two cell anchor

Parameters:

  • x (Integer)

    The column

  • y (Integer) (defaults to: nil)

    The row

Returns:



192
193
194
195
196
# File 'lib/axlsx/drawing/pic.rb', line 192

def end_at(x, y = nil)
  use_two_cell_anchor unless @anchor.is_a?(TwoCellAnchor)
  @anchor.end_at x, y
  @anchor.to
end