samuraicoder-fizzbuzzdazzkezz 0.0.1 → 0.0.2

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 (2) hide show
  1. data/lib/fizzbuzzdazzkezz.rb +10 -7
  2. metadata +2 -2
@@ -1,15 +1,14 @@
1
+ class Range
2
+
1
3
  =begin rdoc
2
4
  Usage: (1..100).print_fizzbuzzdazzkezz(hash)
5
+
3
6
  By default, the following Hash is presented:
4
- {3 => :Fizz, 5 => :Buzz, 7 => :Dazz , 9 => :Kess}
7
+ {3 => :Fizz, 5 => :Buzz, 7 => :Dazz , 9 => :Kezz}
5
8
  We use symbols as it is cheaper than using strings.
6
9
  =end
7
10
 
8
-
9
- class Range
10
- def print_fizzbuzzdazzkezz(hash = {7 => :Dazz, 5 => :Buzz, 3 => :Fizz , 9 => :Kess})
11
- hash = hash
12
- result = Array.new
11
+ def print_fizzbuzzdazzkezz(hash = {7 => :Dazz, 5 => :Buzz, 3 => :Fizz , 9 => :Kezz})
13
12
  self.each do |i|
14
13
  str = ''
15
14
  hash.sort.each do |key, value|
@@ -19,4 +18,8 @@ class Range
19
18
  puts str
20
19
  end
21
20
  end
22
- end
21
+
22
+ alias print_fbdk print_fizzbuzzdazzkezz
23
+ end # End of class Range
24
+
25
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samuraicoder-fizzbuzzdazzkezz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takaaki Kato
@@ -34,7 +34,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 1.8.6
37
+ version: "0"
38
38
  version:
39
39
  required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  requirements: