Module: Match_PCI::String
- Included in:
- String
- Defined in:
- lib/mightystring/string_match_pci.rb
Instance Method Summary collapse
-
#match_pci(in_srch = "") ⇒ Object
Match Partial Case-Insensitive: Usage: “My string has this?”.matchpci(‘RinG’) => true.
Instance Method Details
#match_pci(in_srch = "") ⇒ Object
Match Partial Case-Insensitive: Usage: “My string has this?”.matchpci(‘RinG’) => true
9 10 11 12 13 14 |
# File 'lib/mightystring/string_match_pci.rb', line 9 def match_pci(in_srch = "") if not in_srch.empty? return !!self.downcase[in_srch.downcase] end return false end |