start(interval) Instance Public methods
stop() Instance Public methods
new(frame, dir=:left) Class Public methods
basicMotion() Instance Public methods Basic motion handler. Given what direction the wave is travelling in, it advances the y coordinates in the coordinate-list one step in that direction.
move() Instance Public methods animation control
reverser() Instance Public methods Oscillation handler. This detects whether to reverse the direction of the wave by checking to see if the peak of the wave has moved off the screen (whose size we know already.)
ARGF.argv â ARGV Instance Public methods Returns the ARGV array, which contains the arguments passed to your script, one per element. For example: $ ruby argf.rb -v glark.txt ARGF.argv #=> ["-v", "glark.txt"]
ARGF.binmode â ARGF Instance Public methods Puts ARGF into binary mode. Once a stream is in binary mode, it cannot be reset to non-binary mode. This option has the following effects: Newline conversion is disabled. Encoding conversion is disabled. Content is treated as ASCII-8BIT.
ARGF.binmode? â true or false Instance Public methods Returns true if +ARGF+ is being read in binary mode; false otherwise. (To enable binary mode use +ARGF.binmode+. For example: ARGF.binmode? #=> false ARGF.binmode ARGF.binmode? #=> true
Page 66 of 11844