If you want to get the available methods of a class you could do this:
def tick args
# do this only once
if args.game.tick_count == 1
# print class of args.grid object
puts "The class of args.grid is: #{args.grid.class}"
# print all methods of args.grid object
puts args.grid.methods.sort.join("\n")
end
end