arr 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/arr.rb +32 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 028d5d1d5540d5cd69cfcd6b47b49b7d0e062a74
4
+ data.tar.gz: d9d75ce7dfc290bc7a36570cca2f44e367cdfda2
5
+ SHA512:
6
+ metadata.gz: 4f60d655a3ea1f7d4a59bba78366bad3b6276666c887eb382f1a2cf26b0f217be4697bc414807c09e7615b0a964e2910c8fca32df47787bc0b68f3ba3f0c82d7
7
+ data.tar.gz: 324fd766de80734d344278e39326ef69eabeb70c72df5b9149e909da6fdbe67acc03ea10846847531e49a1852230f6928bbaa3b00a88921def1a1a41b13142fd
@@ -0,0 +1,32 @@
1
+ module Findarraynumeric
2
+
3
+
4
+
5
+ def isnumericarray?
6
+
7
+ temp=true
8
+
9
+ self.each do |item|
10
+ temp=item.is_a?Integer
11
+
12
+ if temp
13
+
14
+ next
15
+
16
+ else break
17
+
18
+ end
19
+
20
+ end
21
+
22
+ return temp
23
+
24
+ end
25
+ end
26
+
27
+ class Array
28
+ include Findarraynumeric
29
+ end
30
+
31
+ a=Array[1, 2,7, 4,5]
32
+ p a.isnumericarray?
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: arr
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Nagasundaram Ilango
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-04 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Is Perfect Square?
14
+ email: nagasundaram@neevtech.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/arr.rb
20
+ homepage: http://rubygems.org/gems/arr_naga
21
+ licenses:
22
+ - NIT
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
+ rubyforge_project:
40
+ rubygems_version: 2.0.7
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Finding the number is perfect square?
44
+ test_files: []