Class: Clock

Inherits:
Object
  • Object
show all
Defined in:
lib/clock.rb

Class Method Summary collapse

Class Method Details

.at(*params) ⇒ Object



2
3
4
5
# File 'lib/clock.rb', line 2

def self.at( *params )
  #TODO fix this
  eval("Time.at #{params.join(',')}")
end

.nowObject



7
8
9
# File 'lib/clock.rb', line 7

def self.now
  Time.now
end

.time=Object



11
12
13
# File 'lib/clock.rb', line 11

def self.time=
  raise "Cannot set real Clock class"
end