Class: UEncode::Position
- Inherits:
-
Object
- Object
- UEncode::Position
- 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_xml ⇒ Object
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 |