Method: String.downcase
- Defined in:
- lib/brstring/string_portuguese.rb
.downcase(texto) ⇒ Object
Retorna uma string com caracteres minúsculos
Exemplo:
String.downcase('TEXTO COM ACENTUAÇÃO') ==> 'texto com acentuação'
98 99 100 101 |
# File 'lib/brstring/string_portuguese.rb', line 98 def self.downcase(texto) return texto if texto.nil? or texto.empty? texto.tr(MAIUSCULAS, MINUSCULAS) end |