# Ruby program to illustrate
# the defining of methods
#!/usr/bin/ruby
# defining class Vehicle
class GFG
# defining method
def geeks
# printing result
puts "Hello Geeks!"
# end of method
end
# end of class GFG
end
# creating object
obj = GFG.new
# calling method using object
obj.geeks