/usr/share/doc/ruby-snmp/examples/get.rb is in ruby-snmp 1.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 | require 'snmp'
host = ARGV[0] || 'localhost'
manager = SNMP::Manager.new(:Host => host, :Port => 161)
response = manager.get(["sysDescr.0", "sysName.0"])
response.each_varbind { |vb| puts vb.to_s }
|