Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/einvoice-qr-encryptor/core_ext/string.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#numeric? ⇒ Boolean
Check string is numeric or not.
Instance Method Details
#numeric? ⇒ Boolean
Check string is numeric or not
7 8 9 10 11 |
# File 'lib/einvoice-qr-encryptor/core_ext/string.rb', line 7 def numeric? true if Float(self) rescue false end |