Guest User

Untitled

a guest
Oct 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.39 KB | None | 0 0
  1. class Point
  2.         def initialize mCount,mOffset
  3.                 @count = mCount
  4.                 @offset = mOffset
  5.         end
  6.  
  7.         def wait
  8.                 sleep @offset
  9.         end
  10.  
  11.         def write
  12.                 @count.times do
  13.                         self.wait
  14.                         print "."
  15.                 end
  16.         end
  17. end
  18.  
  19. kropka = Point.new 10,0.1
  20. kropka.write
Add Comment
Please, Sign In to add comment