Sha256: 3affd482a56512a5e8a593a768dc27428bf4df515c6ed4ed8d204a4a8d9cae3d
Contents?: true
Size: 702 Bytes
Versions: 4
Compression:
Stored size: 702 Bytes
Contents
# -*- coding: utf-8 -*- module Axlsx #This class specifies data for a particular data point. class StrVal # a string value. # @return [String] attr_reader :v # creates a new StrVal object # @option options [String] v def initialize(options={}) @v = "" @idx = 0 options.each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end end # @see v def v=(v) Axlsx::validate_string(v) @v = v end # serialize the object def to_xml_string(idx, str = "") Axlsx::validate_unsigned_int(idx) str << '<c:pt idx="' << idx.to_s << '"><c:v>' << v.to_s << '</c:v></c:pt>' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
axlsx-1.1.7 | lib/axlsx/drawing/str_val.rb~ |
axlsx-1.1.6 | lib/axlsx/drawing/str_val.rb~ |
axlsx-1.1.5 | lib/axlsx/drawing/str_val.rb~ |
axlsx-1.1.4 | lib/axlsx/drawing/str_val.rb~ |