class DMAPParser::TagDefinition
The TagDefinition
class describes the tags
Sources: github.com/chendo/dmap-ng/blob/master/lib/dmap/tag_definitions.rb code.google.com/p/ytrack/wiki/DMAP code.google.com/p/tunesremote-se/wiki/ContentCodes raw.github.com/mattstevens/dmap-parser/master/dmap_parser.c /content-codes rubocop:disable ClassLength
Constants
- DEFINITIONS
Public Class Methods
find(key)
click to toggle source
# File lib/dmapparser/tag_definition.rb, line 20 def find(key) DEFINITIONS[key.to_s] end
Also aliased as: []
tag(*args, &block)
click to toggle source
# File lib/dmapparser/tag_definition.rb, line 24 def tag(*args, &block) definition = new(*args, &block).freeze DEFINITIONS[definition.tag.to_s] = definition end
Public Instance Methods
container?()
click to toggle source
# File lib/dmapparser/tag_definition.rb, line 15 def container? type == :container end
to_s()
click to toggle source
# File lib/dmapparser/tag_definition.rb, line 9 def to_s "#{tag} (#{name}: #{type})" end
Also aliased as: inspect