Class: Timestamp
- Inherits:
-
Object
- Object
- Timestamp
- Defined in:
- lib/detectors/timestamp.rb
Overview
Detects your current date
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize ⇒ Timestamp
constructor
A new instance of Timestamp.
Constructor Details
#initialize ⇒ Timestamp
Returns a new instance of Timestamp.
5 |
# File 'lib/detectors/timestamp.rb', line 5 def initialize; end |
Instance Method Details
#detect ⇒ Object
7 8 9 |
# File 'lib/detectors/timestamp.rb', line 7 def detect Time.now.to_s end |