Class: String

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

Overview

Extend string class to test input

Instance Method Summary collapse

Instance Method Details

#isTimestamp?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/aeonic.rb', line 6

def isTimestamp?
  true if Float(self) rescue false
end