Method: Axlsx::VmlShape#initialize
- Defined in:
- lib/axlsx/drawing/vml_shape.rb
#initialize(options = {}) {|_self| ... } ⇒ VmlShape
Creates a new VmlShape
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/axlsx/drawing/vml_shape.rb', line 20 def initialize(={}) @row = @column = @left_column = @top_row = @right_column = @bottom_row = 0 @left_offset = 15 @top_offset = 2 @right_offset = 50 @bottom_offset = 5 @visible = true @id = (0...8).map{65.+(rand(25)).chr}.join yield self if block_given? end |