Module: Frodo::Query::Criteria::StringFunctions
- Included in:
- Frodo::Query::Criteria
- Defined in:
- lib/frodo/query/criteria/string_functions.rb
Instance Method Summary collapse
-
#contains(str) ⇒ self
Sets up a
containsfunction criterium. -
#endswith(str) ⇒ self
Sets up a
endswithfunction criterium. -
#startswith(str) ⇒ self
Sets up a
startswithfunction criterium. -
#tolower ⇒ self
Applies the
tolowerfunction to the property. -
#toupper ⇒ self
Applies the
toupperfunction to the property.
Instance Method Details
#contains(str) ⇒ self
Sets up a contains function criterium.
8 9 10 |
# File 'lib/frodo/query/criteria/string_functions.rb', line 8 def contains(str) set_function_and_argument(:contains, str) end |
#endswith(str) ⇒ self
Sets up a endswith function criterium.
22 23 24 |
# File 'lib/frodo/query/criteria/string_functions.rb', line 22 def endswith(str) set_function_and_argument(:endswith, str) end |
#startswith(str) ⇒ self
Sets up a startswith function criterium.
15 16 17 |
# File 'lib/frodo/query/criteria/string_functions.rb', line 15 def startswith(str) set_function_and_argument(:startswith, str) end |
#tolower ⇒ self
Applies the tolower function to the property.
28 29 30 |
# File 'lib/frodo/query/criteria/string_functions.rb', line 28 def tolower set_function_and_argument(:tolower, nil) end |
#toupper ⇒ self
Applies the toupper function to the property.
34 35 36 |
# File 'lib/frodo/query/criteria/string_functions.rb', line 34 def toupper set_function_and_argument(:toupper, nil) end |