mean_median_mode 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61dbae4a32331759bf16b8f5e2345809467cb974
4
- data.tar.gz: bc6fa3a65ff5f392552e69e07ab42bae95ae71cc
3
+ metadata.gz: 4ad930728ac3181d42c47d09b513f0bbd4840c9a
4
+ data.tar.gz: 74d8f37eb29a9ada945cc6dc9875453d1cfff83d
5
5
  SHA512:
6
- metadata.gz: 0f253f7c5880865d06bbcbdb251c76fbfdf16937e986f8fefdb02e18df5b0fed1c5f07cccb550f476b4a8da52849f13f7f9a52dc58609d0fca584b3963dc5acd
7
- data.tar.gz: e8d61b37791545907f59d21aabec1fcc0f83ecc4335a976db75342d57fd3dd4fc2ffda80b46f6829bad95e9a43b4f4e89b372c9e9f37169a8db41f1c12d81e97
6
+ metadata.gz: f460f423e035f9ca8559cd170d169f840c8212ac8c4af338c92a78f0a5364bc4d4e3dffb0fe6c4edb271a11c1dbeecc76c1270a7cc3ae61293a8f3d1942ff49a
7
+ data.tar.gz: 286a7865cfb432659ddde8fb8892968f7123afbc8d3f5c2f856ce81cf4ba5fba521fc671427c53173859179d4a0fcd394e5380a8ffce1506e1ea770e21707cb7
@@ -1,10 +1,10 @@
1
1
  module MeanMedianMode
2
2
  class Mean < Array
3
- def initialize(*number_array)
3
+ def initialize(number_array)
4
4
  puts '*'*80
5
5
  puts 'Mean called'
6
6
  puts '*'*80
7
- num_arr = *number_array
7
+ num_arr = number_array
8
8
  total = num_arr.count
9
9
  if total
10
10
  sorted_array = num_arr.sort
@@ -1,10 +1,10 @@
1
1
  module MeanMedianMode
2
2
  class Median < Array
3
- def initialize(*num_array)
3
+ def initialize(num_array)
4
4
  puts '*'*80
5
5
  puts 'Median called'
6
6
  puts '*'*80
7
- num_arr = *num_array
7
+ num_arr = num_array
8
8
  total = num_arr.count
9
9
  if total
10
10
  pos = (total+1)/2
@@ -1,3 +1,3 @@
1
1
  module MeanMedianMode
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -6,9 +6,9 @@ module MeanMedianMode
6
6
  class Base
7
7
  attr_reader :mean_result
8
8
 
9
- def initialize(*args)
10
- mean_result = MeanMedianMode::Mean.new(*args)
11
- median_result = MeanMedianMode::Median.new(*args)
9
+ def initialize(args)
10
+ mean_result = MeanMedianMode::Mean.new(args)
11
+ median_result = MeanMedianMode::Median.new(args)
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mean_median_mode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helios Solutions