array_op_custom 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -0
- data/lib/array_op_custom.rb +3 -0
- data/lib/array_op_custom/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f59e3cc47a40c3fa6d9c83a846cf59fcef08721d7526dc4d84b57091a7b1b6b
|
4
|
+
data.tar.gz: 5085aed34736ae893c2f92fe4c1a65d13052ccc4c9ec75350d25965e0833bb29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20210e3b1ebb981780f760d3c664a1cdd887e4d8df0b4b433dd172410d54f6044308bd26e9170b9cca5740929f28fc3bde9441f6e6bb9134997f3549f5b8d205
|
7
|
+
data.tar.gz: fe8944f236f6cb593c561428ae8b844a9ea99f3c6371751e754659eecca87df14d536d4ca1af954353fc6f1250055f816e3bc2dd15effea8a35677bff015af00
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -61,6 +61,20 @@ require 'array_op_custom'
|
|
61
61
|
[1, 2, 3].to_h
|
62
62
|
#=> {:"0"=>1, :"1"=>2, :"2"=>3}
|
63
63
|
```
|
64
|
+
You still can use "<<"
|
65
|
+
But you can't use push array "+".
|
66
|
+
You can use "==" instead of "+".
|
67
|
+
```ruby
|
68
|
+
arr = [1, 2, 3]
|
69
|
+
p arr << 4
|
70
|
+
#=> [1, 2, 3, 4]
|
71
|
+
p arr
|
72
|
+
#=> [1, 2, 3, 4]
|
73
|
+
p arr == 5
|
74
|
+
#=> [1, 2, 3, 4, 5]
|
75
|
+
p arr
|
76
|
+
#=> [1, 2, 3, 4]
|
77
|
+
```
|
64
78
|
## Development
|
65
79
|
|
66
80
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/array_op_custom.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: array_op_custom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- k-kyg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|