blankImplementation 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.
- checksums.yaml +7 -0
- data/Rakefile +0 -0
- data/lib/blankImplementation/version.rb +4 -0
- data/lib/blankImplementation.rb +12 -0
- metadata +47 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 7757e221f737149eedf92dd27d01d418d18c4a4f3f40fa48172f7794bb5216b1
|
|
4
|
+
data.tar.gz: 6e3e5aebb8f48494c07af9c96d9b4aa87f5058aad98676fe24a206ecbf657fca
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: fd460a800abf4a5610ccd5bb325372a81768d418482236f2bbea7964fbaa60859ae5fe248010ea64ef7f96905dbffa4368ac9d61713e0852e0c0276f0dad6e97
|
|
7
|
+
data.tar.gz: 858c2620e834174147fb56f050349c82efa6eda43b08a093acec4cdca255c07d459c51d53b25b118378da06c455cbdfaf47ce7f9a0b87d099b9315a95a0de0f2
|
data/Rakefile
ADDED
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
class Object
|
|
2
|
+
def blank?
|
|
3
|
+
return true if(self==nil || self==false || (/^\s*$/=~self.to_s) )
|
|
4
|
+
return false if(/\d/=~self.to_s)
|
|
5
|
+
return self.empty?
|
|
6
|
+
end
|
|
7
|
+
def blank1?
|
|
8
|
+
self.respond_to?(:empty?) ? ((self.instance_of?String )? self.match?(/^\s*$/) : self.empty?) : !self
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
|
metadata
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: blankImplementation
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- aishwarya
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: 'blank implementation. Takes a parameter and checks whether it is blank
|
|
14
|
+
or not '
|
|
15
|
+
email: aishwarya.arram@ggktech.com
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- Rakefile
|
|
21
|
+
- lib/blankImplementation.rb
|
|
22
|
+
- lib/blankImplementation/version.rb
|
|
23
|
+
homepage: http://rubygems.org/gems/blankImplementation
|
|
24
|
+
licenses:
|
|
25
|
+
- MIT
|
|
26
|
+
metadata: {}
|
|
27
|
+
post_install_message:
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubyforge_project:
|
|
43
|
+
rubygems_version: 2.7.6
|
|
44
|
+
signing_key:
|
|
45
|
+
specification_version: 4
|
|
46
|
+
summary: blank implementation
|
|
47
|
+
test_files: []
|