method
construct
v2_4_6 -
Show latest stable
- Class:
RSS::ITunesItemModel::ITunesDuration
construct(hour, minute, second)public
No documentation available.
# File lib/rss/itunes.rb, line 297
def construct(hour, minute, second)
components = [minute, second]
if components.include?(nil)
nil
else
components.unshift(hour) if hour and hour > 0
components.collect do |component|
"%02d" % component
end.join(":")
end
end