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

View File

@ -12,6 +12,8 @@
- [Rust](./dev/rust/main.md)
- [serde](./dev/rust/serde.md)
- [Testing](./dev/rust/testing.md)
- [Ruby](./dev/ruby/main.md)
- [arrays](./dev/ruby/arrays.md)
- [Web](./dev/web/main.md)
- [front](./dev/web/front/main.md)
- [babel and babel-preset-stage-2](./dev/web/front/babel-preset-stage-2.md)

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