summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/two_cell_anchor.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-26 14:40:24 +0900
committerRandy Morgan <[email protected]>2012-05-26 14:40:24 +0900
commitea66a00e1a6275ce263ba943c45d1e6ff844eb0c (patch)
tree4d71435599dbc842b6ab119633d771b07a5ab3a5 /lib/axlsx/drawing/two_cell_anchor.rb
parentddb30e7e45e88082c268b902e60f62d48d855c70 (diff)
downloadcaxlsx-ea66a00e1a6275ce263ba943c45d1e6ff844eb0c.tar.gz
caxlsx-ea66a00e1a6275ce263ba943c45d1e6ff844eb0c.zip
add in two cell anchors for images.
Diffstat (limited to 'lib/axlsx/drawing/two_cell_anchor.rb')
-rw-r--r--lib/axlsx/drawing/two_cell_anchor.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/two_cell_anchor.rb b/lib/axlsx/drawing/two_cell_anchor.rb
index b496bd8a..8071515c 100644
--- a/lib/axlsx/drawing/two_cell_anchor.rb
+++ b/lib/axlsx/drawing/two_cell_anchor.rb
@@ -34,7 +34,7 @@ module Axlsx
# @param [Drawing] drawing
# @param [Class] chart_type This is passed to the graphic frame for instantiation. must be Chart or a subclass of Chart
# @param object The object this anchor holds.
- # @option options [Array] start_at the col, row to start at
+ # @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={})
@drawing = drawing
@@ -49,6 +49,11 @@ module Axlsx
@object.chart
end
+ # Creates an image associated with this anchor.
+ def add_pic(options={})
+ @object = Pic.new(self, options)
+ end
+
# The index of this anchor in the drawing
# @return [Integer]
def index