2010/5/10 Hugo Massaroli <[email protected]>

> Perdón por mi ignorancia, alguien sabe qué hace esta línea?
>
> @bla =~ /login/i
>

/i makes the regex match case insensitive.

http://www.zenspider.com/Languages/Ruby/QuickRef.html#11
http://www.regular-expressions.info/ruby.html




> Se que da el número (creo) de donde matchee con la expresión regular *
> /login/*, pero lo que no entiendo es el último *i* al final. Tiene algún
> sentido? En el método en el que está no hay ninguna variable con ese nombre.
>
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>
>


-- 
--------------------------------------------------------------
EmmanuelOga.com - Software Developer
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a