is_decimal 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/is_decimal.rb +5 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5a0ee940e6df2354ddbc8ad941f955dcf677f50c1c26704750a4d6af856ee1cf
4
+ data.tar.gz: 5c7f6abe2a892eab8f4663cde87f4c948b52683887261bbbfb0ecd85d8e7ab03
5
+ SHA512:
6
+ metadata.gz: d4be9740dc1f32f878e2bd0d2444f8787219486aae5916eaea1c2220462907685103518a54344ec60ffc33a14541bf7edf5c2f7bfecd6d4bd79637183c77d34d
7
+ data.tar.gz: 30e4cc9c8a445e3be41ec209485f44c4192f4d2e5482ddeae360811136736ea0c22d794dd38fc7f9a07f6b62316314e1dc7638403a7b35ad3df72caa1346b44d
data/lib/is_decimal.rb ADDED
@@ -0,0 +1,5 @@
1
+ class Numeric
2
+ def is_decimal?
3
+ self.is_a? Float
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: is_decimal
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kunj Choksi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: kunj07soni@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/is_decimal.rb
20
+ homepage:
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubygems_version: 3.3.7
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: a more readable way to check is number is decimal or not
43
+ test_files: []