Module: UEncode::RateElement

Includes:
AttrSetting
Included in:
FrameRate, Par
Defined in:
lib/uencode/elements.rb

Constant Summary collapse

ATTRIBUTES =
[:numerator, :denominator]

Instance Method Summary collapse

Methods included from AttrSetting

included, #initialize, #set_attributes

Instance Method Details

#==(other) ⇒ Object



44
45
46
# File 'lib/uencode/elements.rb', line 44

def ==(other)
  numerator == other.numerator && denominator == other.denominator
end

#to_xmlObject



35
36
37
38
39
40
41
42
# File 'lib/uencode/elements.rb', line 35

def to_xml
  %Q{
    <#{root_name}>
      <numerator>#{numerator}</numerator>
      <denominator>#{denominator}</denominator>
    </#{root_name}>
  }
end