Method: Axlsx::VmlShape#initialize

Defined in:
lib/axlsx/drawing/vml_shape.rb

#initialize(options = {}) {|_self| ... } ⇒ VmlShape

Creates a new VmlShape

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • row (Integer)
  • column (Integer)
  • left_column (Integer)
  • left_offset (Integer)
  • top_row (Integer)
  • top_offset (Integer)
  • right_column (Integer)
  • right_offset (Integer)
  • bottom_row (Integer)
  • bottom_offset (Integer)

Yields:

  • (_self)

Yield Parameters:



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/axlsx/drawing/vml_shape.rb', line 20

def initialize(options={})
  @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
  parse_options options
  yield self if block_given?
end