Module: VORuby::STC::V1_10::Coords::CValue

Includes:
CoordValue
Included in:
Value, ValueRef
Defined in:
lib/voruby/stc/1.10/coords.rb

Overview

Substitution group for a scalar coordinate value

Instance Method Summary collapse

Methods included from SerializableToXml

#element

Instance Method Details

#==(value) ⇒ Object



433
434
435
# File 'lib/voruby/stc/1.10/coords.rb', line 433

def ==(value)
  self.value == value.value
end

#to_sObject



429
430
431
# File 'lib/voruby/stc/1.10/coords.rb', line 429

def to_s
  self.value.to_s
end

#to_xml(name = nil, ns = nil) ⇒ Object



437
438
439
440
441
442
# File 'lib/voruby/stc/1.10/coords.rb', line 437

def to_xml(name=nil, ns=nil)
  el = element(name, ns)
  el.text = self.value.to_s
  collapse_namespaces(el)
  el
end