lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

Add an alias to Header.all method #87

Closed KINGSABRI closed 6 years ago

KINGSABRI commented 6 years ago

Hello there! It would be more convenient to add an alias to method Header.all to be Header.list_headers, or Header.list

Also, the comment/document would be more descriptive/obvious if it was

   # List all available headers
    # Get known header classes
    # @return [Array<Class>]
    def self.all
      return @header_classes if @header_classes
      @header_classes = @added_header_classes.values
    end