diff options
| author | Randy Morgan <[email protected]> | 2012-05-08 20:28:52 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-08 20:28:52 +0900 |
| commit | 7aa25770f1d92a2b4aa2c20ef9eabf24920052f1 (patch) | |
| tree | 4b7a983cf1954b5d681ca0909b47bd60d1152dcf /lib/axlsx/drawing/vml_drawing.rb | |
| parent | 90401b4e3d1ce641646498dd72c20ecbc205bb63 (diff) | |
| download | caxlsx-7aa25770f1d92a2b4aa2c20ef9eabf24920052f1.tar.gz caxlsx-7aa25770f1d92a2b4aa2c20ef9eabf24920052f1.zip | |
documentation for comments.
Diffstat (limited to 'lib/axlsx/drawing/vml_drawing.rb')
| -rw-r--r-- | lib/axlsx/drawing/vml_drawing.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/axlsx/drawing/vml_drawing.rb b/lib/axlsx/drawing/vml_drawing.rb index 8ff6469b..2ae1dc68 100644 --- a/lib/axlsx/drawing/vml_drawing.rb +++ b/lib/axlsx/drawing/vml_drawing.rb @@ -1,16 +1,24 @@ module Axlsx + # a vml drawing used for comments in excel. class VmlDrawing + # creates a new Vml Drawing object. + # @param [Comments] the comments object this drawing is associated with def initialize(comments) raise ArgumentError, "you must provide a comments object" unless comments.is_a?(Comments) @comments = comments end + # The part name for this vml drawing + # @return [String] def pn "#{VML_DRAWING_PN}" % (@comments.worksheet.index + 1) end + # serialize the vml_drawing to xml. + # @param [String] str + # @return [String] def to_xml_string(str = '') str = <<BAD_PROGRAMMER <xml xmlns:v="urn:schemas-microsoft-com:vml" |
