tftp is a pure Ruby TFTP client and server.
You can view the full documentation here.
You can install TFTP via rubygems.
gem install tftp
Or to checkout the code:
git clone https://github.com/p3ll0n/tftp.git
Trivial File Transfer Protocol (TFTP) is a file transfer protocol implemented on top of the User Datagram Protocol (UDP) notable for its simplicity.
Its simple design makes it ideal for low memory platforms where it is commonly used for booting devices without any storage (routers) and as a part of network based installation systems.
TFTP is currently defined primarily by RFC 1350.
Due to its complete lack of an authentication mechanism it is strongly advised the TFTP run only one private, local networks.