Module: UEncode::SizeBase

Includes:
AttrSetting
Included in:
MaxSize, Size
Defined in:
lib/uencode/elements.rb

Constant Summary collapse

ATTRIBUTES =
[:width, :height]

Instance Method Summary collapse

Methods included from AttrSetting

included, #initialize, #set_attributes

Instance Method Details

#to_xmlObject



10
11
12
13
14
15
16
17
# File 'lib/uencode/elements.rb', line 10

def to_xml
  %Q{
    <#{root_name}>
      <width>#{width}</width>
      <height>#{height}</height>
    </#{root_name}>
  }
end