Method: Axlsx::StrVal#initialize

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

#initialize(options = {}) ⇒ StrVal

creates a new StrVal object

Parameters:

  • (defaults to: {})

    a customizable set of options

Options Hash (options):

  • v (String)


13
14
15
16
17
18
19
# File 'lib/axlsx/drawing/str_val.rb', line 13

def initialize(options={})
  @v = ""
  @idx = 0
  options.each do |o|
    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
  end
end