class Axlsx::StrVal
This class specifies data for a particular data point.
Attributes
v[R]
a string value. @return [String]
Public Class Methods
new(options={})
click to toggle source
creates a new StrVal
object @option options [String] v
# File lib/axlsx/drawing/str_val.rb, line 10 def initialize(options={}) @v = "" @idx = 0 parse_options options end
Public Instance Methods
to_xml_string(idx, str = "")
click to toggle source
serialize the object
# File lib/axlsx/drawing/str_val.rb, line 26 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
v=(v)
click to toggle source
@see v
# File lib/axlsx/drawing/str_val.rb, line 21 def v=(v) @v = v.to_s end