Class: Timestamp

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

Overview

Detects your current date

Instance Method Summary collapse

Constructor Details

#initializeTimestamp

Returns a new instance of Timestamp.



5
# File 'lib/detectors/timestamp.rb', line 5

def initialize; end

Instance Method Details

#detectObject



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

def detect
  Time.now.to_s
end