Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/crumbl/base.rb
Instance Method Summary collapse
Instance Method Details
#is_json? ⇒ Boolean
50 51 52 |
# File 'lib/crumbl/base.rb', line 50 def is_json? !!JSON.parse(self) rescue false end |