Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Point
- def initialize mCount,mOffset
- @count = mCount
- @offset = mOffset
- end
- def wait
- sleep @offset
- end
- def write
- @count.times do
- self.wait
- print "."
- end
- end
- end
- kropka = Point.new 10,0.1
- kropka.write
Add Comment
Please, Sign In to add comment