Class: String
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#quote ⇒ Object
todo: add ability to escape quotes inside the string.
Instance Method Details
#blank? ⇒ Boolean
2 3 4 |
# File 'lib/core_extensions/string.rb', line 2 def blank? self !~ /\S/ end |
#quote ⇒ Object
todo: add ability to escape quotes inside the string
7 8 9 |
# File 'lib/core_extensions/string.rb', line 7 def quote "'#{ self }'" end |