odd_split 0.0.1

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/odd_split.rb +5 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ce91d9bac0d60cc81091a5e77b09ce32af39e505b0e7003425668f45308daa7
4
+ data.tar.gz: e483b2e89f43abc4f2241e105752687261336ddbadf8c7c9d2119d91a184a759
5
+ SHA512:
6
+ metadata.gz: b6871dafe41eda95f35f87c24709e929204c25b244ddc340e7896420c7efa1f28ae26181c5fb2b3c72fa53efc4a35426c727aa9db9ce374df08dcf53211aa8bf
7
+ data.tar.gz: e2422b27525b3650727804fe56abd662bda712c1b0b20ccdc3e0d22a1883176434c6abdec17a6af969ae44ef8fc91d55d5435d051f9eb12c247775b0625c81b6
data/lib/odd_split.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def split_to_odd
3
+ partition(&:odd?)
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: odd_split
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Krishna S
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/odd_split.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 for apliting the array in odd and even arrays
42
+ test_files: []