How to use logical operators in ruby?

Logical AND, OR, NOT..

In other languages like java &&, ||, ! is used. how we have to use it in
ruby.

A sample code in java, please explain it in ruby.

     if((namespace == attributeUri[ i ] ||
                        namespace.equals(attributeUri[ i ]) )
                       && name.equals(attributeName[ i ]) )

Please do the same in ruby

Thanks in advance
-- 
Posted via http://www.ruby-forum.com/.