Everything is an object

Haml code posted by der_flo
created at 13 Jan 11:53, updated at 14 Jan 01:29

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"hello".capitalize
#=> "Hello"

-123.abs
#=> 123

def cool 
  puts "Yo"
end

x = 2
x.even?
#=> true
3.even?
#=> false
131 Bytes in 2 ms with coderay