class AwesomeXML::Duration::Format::StaticChunk
Attributes
format_chars[RW]
Public Class Methods
new()
click to toggle source
# File lib/awesome_xml/duration/format/static_chunk.rb, line 11 def initialize @format_chars = [] end
Public Instance Methods
dynamic?()
click to toggle source
Counterpart of the same method of ‘AwesomeXML::Duration::Format::DynamicChunk`. Used to differentiate between instances of these two classes.
# File lib/awesome_xml/duration/format/static_chunk.rb, line 27 def dynamic? false end
parse_length()
click to toggle source
Returns the number of the defining characters.
# File lib/awesome_xml/duration/format/static_chunk.rb, line 21 def parse_length format_chars.length end
to_s()
click to toggle source
Returns the defining characters joint into a string.
# File lib/awesome_xml/duration/format/static_chunk.rb, line 16 def to_s format_chars.join end