Various experiments with an asortment of languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
313 B

# File: rdm.rb
# Date: 02/10/2010
# Author: Collin J. Doering <>
# Description: Random source file to experiment while learning ruby
class Point
attr_accessor :x, :y
def initialize(x=0,y=0)
@x, @y = x, y
def self.add(p1,p2) + p2.x, p1.y + p2.y)