summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/two_cell_anchor.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-26 13:20:57 +0900
committerRandy Morgan <[email protected]>2011-11-26 13:20:57 +0900
commit11303a4d6664d9a7ff7bc408035d2ab70378a375 (patch)
tree51c675ae3ab8cd6c1afd7087145261b1eb2ec54c /lib/axlsx/drawing/two_cell_anchor.rb
parent044afe5a35db42cefce4f18a0fecc3da90cab1b5 (diff)
downloadcaxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.tar.gz
caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.zip
adding in support for ruby 1.9.3
release version 1.0.9
Diffstat (limited to 'lib/axlsx/drawing/two_cell_anchor.rb')
-rw-r--r--lib/axlsx/drawing/two_cell_anchor.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/axlsx/drawing/two_cell_anchor.rb b/lib/axlsx/drawing/two_cell_anchor.rb
index 73e2fe20..06c0554a 100644
--- a/lib/axlsx/drawing/two_cell_anchor.rb
+++ b/lib/axlsx/drawing/two_cell_anchor.rb
@@ -24,9 +24,6 @@ module Axlsx
# @return [Drawing]
attr_reader :drawing
- # The index of this anchor in the drawing
- # @return [Integer]
- attr_reader :index
# Creates a new TwoCellAnchor object and sets up a reference to the from and to markers in the
# graphic_frame's chart. That means that you can do stuff like
@@ -51,6 +48,8 @@ module Axlsx
@object.chart
end
+ # The index of this anchor in the drawing
+ # @return [Integer]
def index
@drawing.anchors.index(self)
end