Sha256: ea7923f65e67f68a1d2f43c0ebfd8abe9bd502b0e0b53c5ecf397bd09604180b
Contents?: true
Size: 632 Bytes
Versions: 8
Compression:
Stored size: 632 Bytes
Contents
# -*- coding: utf-8 -*- module Axlsx #This class specifies data for a particular data point. class StrVal include Axlsx::OptionsParser # creates a new StrVal object # @option options [String] v def initialize(options={}) @v = "" @idx = 0 parse_options options end # a string value. # @return [String] attr_reader :v # @see v def v=(v) @v = v.to_s 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
8 entries across 8 versions & 2 rubygems