Class: String
Direct Known Subclasses
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#lore_escape ⇒ Object
Poor man’s SQL injection prevention …
Instance Method Details
#empty? ⇒ Boolean
61 62 63 |
# File 'lib/lore/bits.rb', line 61 def empty? return self == '' end |
#lore_escape ⇒ Object
Poor man’s SQL injection prevention …
7 8 9 10 11 |
# File 'lib/lore/clause.rb', line 7 def lore_escape self.gsub!("'","X") self.gsub!('"','X') self end |