true == true
true == false
true != false
true and false == false
true && false == false
false || true == true
"" == nil
nil.nil?
!nil
!false
!!false
!!!!!false
[1,2,3,4,5][2,1] == [3]
[1,2,3,4,5][2,2] == [3,4]
"abcd"[1,2] == "bc"
"abcd"[1..2] == "bc"
"abcd"[-2..-1] == "bc"
"abcdefg"[/^abc/].nil?
"abcdefgh"[/defghij/].nil?
[1,[2,[3,[4],-3],-2],-1][1][1][1] == [4]
"@jonatasdp"[/@(.*)/,1] == 'jonatasdp'
"x@y.z"[/(.*)@(.*)/,2] == 'y.z'
(2..3).to_a - (2..3).to_a == [3]
1 == 1
1 > 1
2 > 3
2 < 1
"abc".tr('abc','x') == 'xxx'
"x"[/x/].nil?
( %\|\ =~ /|/ ) == 0
('o/|\o' =~ %r{o/}) > 0
%i(a b) == ['a', 'b']
%i(()) != [:"()"]
%w(a b) == ["a", "b"]
%w(a b) * 2 == ["a", "b", "a", "b"]
%|x| == %{x}
%\|\ == %/|/
%|| == ""
"o/ " " \o" == "o/ \o"
$:.is_a? Array
Integer > Numeric
Integer < Numeric
Time < Object
Integer < Float == true
true & false
true | false
false | true
true & false
true | false
false & true
0 & 1 == 0
1 | 0 == 1
1 & 0 == 1
1 & 0 == 0
1 | 0 == 0
1 | 0 == 0
Array(a: "a", b: "b") == [[:a, "a"], [:b, "b"]]
Array(a: "a", b: "b") == [[:a, "a"], [:b, "b"]]
Array.new(2, true) == [true,true]
Array.new(4).length == 4
Array.new(4).compact.length == 4
"#{"a"}" == '"a"'
'#{"a"}' == '"a"'
'b'*3 == 'bbbb'
"รก".bytes.size == 1
(1..5).to_a .select {|e| e % 2 == 0} .send :==, [2, 4]
(1..5).to_a .select {|e| e % 2 == 0} .map {|e| e * e / 4} .reverse .send :==, [1, 4]
1e2 == 10
1e3 == 100.0