summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/one_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/one_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/one_cell_anchor.rb')
-rw-r--r--lib/axlsx/drawing/one_cell_anchor.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/axlsx/drawing/one_cell_anchor.rb b/lib/axlsx/drawing/one_cell_anchor.rb
index caa0edae..0626502e 100644
--- a/lib/axlsx/drawing/one_cell_anchor.rb
+++ b/lib/axlsx/drawing/one_cell_anchor.rb
@@ -17,20 +17,15 @@ module Axlsx
# @return [Drawing]
attr_reader :drawing
- # The index of this anchor in the drawing
- # @return [Integer]
- attr_reader :index
-
-
# the width of the graphic object in pixels.
# this is converted to EMU at a 92 ppi resolution
# @return [Integer]
- attr_accessor :width
+ attr_reader :width
# the height of the graphic object in pixels
# this is converted to EMU at a 92 ppi resolution
# @return [Integer]
- attr_accessor :height
+ attr_reader :height
# Creates a new OneCellAnchor object and an Pic associated with it.
@@ -53,9 +48,14 @@ module Axlsx
@object = Pic.new(self, options)
end
+ # @see height
def height=(v) Axlsx::validate_unsigned_int(v); @height = v; end
+
+ # @see width
def width=(v) Axlsx::validate_unsigned_int(v); @width = v; end
+ # The index of this anchor in the drawing
+ # @return [Integer]
def index
@drawing.anchors.index(self)
end