Method: Axlsx::OneCellAnchor#initialize
- Defined in:
- lib/axlsx/drawing/one_cell_anchor.rb
#initialize(drawing, options = {}) ⇒ OneCellAnchor
Creates a new OneCellAnchor object and an Pic associated with it.
19 20 21 22 23 24 25 26 27 |
# File 'lib/axlsx/drawing/one_cell_anchor.rb', line 19 def initialize(drawing, ={}) @drawing = drawing @width = 0 @height = 0 drawing.anchors << self @from = Marker.new @object = Pic.new(self, ) end |