ruby
4 postsThe double bang
In Ruby, you can simply negate an expression by using "!" abc = 'abc' !abc #=> false Similarly, abc = 'abc' !abc #=> false !!abc #=> true Ruby's double-bang negates the negated statement, which...
In Ruby, you can simply negate an expression by using "!" abc = 'abc' !abc #=> false Similarly, abc = 'abc' !abc #=> false !!abc #=> true Ruby's double-bang negates the negated statement, which...