parity_arg 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/parity_arg.rb +11 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2ad7a663ccb88a98bb185be51531481d2cf75d64647fabfee79de9ee87798ccb
4
+ data.tar.gz: a0638c149a9d893130af9e35c41a649f2a1978f066acce7b21ac526ed78c1a0a
5
+ SHA512:
6
+ metadata.gz: a3cab0cca303aefa45f79ac42a45ab3d00c33d880f3a6925d7040fc0e3dee7eab5db8ebc9633dd68843c557711639bbad2f87200f6dee58f328ad948206f011a
7
+ data.tar.gz: cfc5a834241545ee31795117d6eb672173dcb59528c1f5c7ddb9d2db374579e63c90d56b1a15503f44bf35375cc4efb7221b55e5e4d6e02672e4dca045e64015
data/lib/parity_arg.rb ADDED
@@ -0,0 +1,11 @@
1
+ class Array
2
+
3
+ def i_am_parity
4
+ puts " Hey I am Parity "
5
+ end
6
+
7
+ def split_by_parity
8
+ partition(&:even?)
9
+ end
10
+
11
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parity_arg
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Sunny Bansal
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/parity_arg.rb
20
+ homepage:
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.1.6
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: A gem to partition an array of integers based on paripty
42
+ test_files: []