fizzbuzz_mf 1.0.0

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/fizzbuzz_mf.rb +10 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '041877a2e707f27378abc99460102a4e57959483fba3bc7bb592f022aee556ff'
4
+ data.tar.gz: 1cf146d637a4b89457dcec12ec7128cdd1bddd39b9608a8caf30b7ed63d2bb2b
5
+ SHA512:
6
+ metadata.gz: 1c6a30ba64c1c72239c8b824ccd3f39ee27c7939bd0bb2b19c09c961c5f9fa2a62b11d04b4cd92e02afa7c83aad584ff53866fd61286d7e5ebd6d89453f31bf5
7
+ data.tar.gz: 07be62d115abdc750ee64bede09417b2b9273d9266b5156ed51d8ae826d1632e9c76281803536cc3348ba0958091daa4a531e47eba47ebd2f4f9f6f93246af14
@@ -0,0 +1,10 @@
1
+ class FizzBuzz
2
+ def fizzbuzz(lower, upper)
3
+ (lower..upper).each do |num|
4
+ fizzbuzz = ""
5
+ fizzbuzz += "Fizz" if num % 3 == 0
6
+ fizzbuzz += "Buzz" if num % 5 == 0
7
+ puts (fizzbuzz == "" ? num : fizzbuzz)
8
+ end
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fizzbuzz_mf
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mohammed Ferbin Karumannil
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple Fizz Buzz gem
14
+ email: ferbin17@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/fizzbuzz_mf.rb
20
+ homepage: https://github.com/ferbin17/fizzbuzz
21
+ licenses:
22
+ - MIT
23
+ metadata:
24
+ github_repo: https://github.com/ferbin17/fizzbuzz
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.0.3
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: FizzBuzz!
44
+ test_files: []