Class: UEncode::Position

Inherits:
Object
  • Object
show all
Includes:
AttrSetting
Defined in:
lib/uencode/elements.rb

Constant Summary collapse

ATTRIBUTES =
[:x, :y]

Instance Method Summary collapse

Methods included from AttrSetting

included, #initialize, #set_attributes

Instance Method Details

#to_xmlObject



92
93
94
95
96
97
98
99
# File 'lib/uencode/elements.rb', line 92

def to_xml
  %Q{
  <position>
  <#{x.nil? ? '<x>' + x.to_s + '</x>' : ""}
  <#{y.nil? ? '<y>' + y.to_s + '</y>' : ""}
  </position>
  }
end