# File lib/packetfu/packet.rb, line 54 def method_missing(sym, *args) case sym.to_s when /^invalid_/ @invalid_header.send(sym,*args) when /^eth_/ @eth_header.send(sym,*args) when /^arp_/ @arp_header.send(sym,*args) when /^ip_/ @ip_header.send(sym,*args) when /^icmp_/ @icmp_header.send(sym,*args) when /^udp_/ @udp_header.send(sym,*args) when /^tcp_/ @tcp_header.send(sym,*args) when /^ipv6_/ @ipv6_header.send(sym,*args) else raise NoMethodError, "Unknown method `#{sym}' for this packet object." end end