Add ruby arrays notes

This commit is contained in:
Wilfried OLLIVIER 2019-12-11 17:23:15 +01:00
parent bb4629f796
commit 38977a1836
3 changed files with 9 additions and 0 deletions

6
src/dev/ruby/arrays.md Normal file
View file

@ -0,0 +1,6 @@
# Check if all array elements are equals
```ruby
arr = [0, 0, 0, 0, 0, 0, 0]
puts true if arr.uniq.length == 1
```

1
src/dev/ruby/main.md Normal file
View file

@ -0,0 +1 @@
# Ruby