module Eyesaver

Constants

VERSION

Public Class Methods

open_reminder() click to toggle source

private

# File lib/eyesaver.rb, line 18
def self.open_reminder
  `open http://20-20-20.tips`
end
run!() click to toggle source
# File lib/eyesaver.rb, line 4
def self.run!
  start = Time.now
  while true
    current_time = Time.now
    time_diff = current_time - start
    if time_diff >= 1200
      open_reminder
      start = Time.now
    end #end of if
  end #end of while
end