lib/dns/zone/rr/record.rb
# FIXME: should we just: `def type; 'SOA'; end` rather then do the class name convension?
#
# Figures out TYPE of RR using class name.
# This means the class name _must_ match the RR ASCII TYPE.
#
# When called directly on the parent class (that you should never do), it will
#   return the string as `<type>`, for use with internal tests.
#
# @return [String] the RR type
should we just: `def type; 'SOA'; end` rather then do the class name convension.
Figures out TYPE of RR using class name.
This means the class name _must_ match the RR ASCII TYPE.

When called directly on the parent class (that you should never do), it will
return the string as ``, for use with internal tests.
should we just : ` def type ; ' SOA ' ; end ` rather then do the class name convension . Figures out TYPE of RR using class name . This means the class name _must_ match the RR ASCII TYPE . When called directly on the parent class ( that you should never do ) it will return the string as ` ` for use with internal tests .
def type
    name = self.class.name.split('::').last
    return '<type>' if name == 'Record'
    name
  end
def type name = self . class . name . split ( '::' ) . last return '<type>' if name == 'Record' name end
FIXME: should we just: `def type; 'SOA'; end` rather then do the class name convension?
FIXME : should we just : ` def type ; ' SOA ' ; end ` rather then do the class name convension?
the RR type
the RR type
String