Sha256: 7152d15887bcbbc259d1afa339f1abbf25b59049d72a6344ab777723fb5e39e2
Contents?: true
Size: 160 Bytes
Versions: 2
Compression:
Stored size: 160 Bytes
Contents
module Shortcut class Point attr_reader :x, :y def initialize(x, y) @x, @y = x, y end def to_s "#{@x}, #{@y}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shortcut-0.0.2 | lib/shortcut/point.rb |
shortcut-0.0.1 | lib/shortcut/point.rb |