simple1_calculator 0.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/calculator.rb +17 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4150b680dfc144f09ce7e72af2732874789592164e2aed9233b216d237bbfa0e
4
+ data.tar.gz: 7c4760817ba6d69b77bd6bc9e7a865829627d135f5cde7f8827aeaf475ab63c9
5
+ SHA512:
6
+ metadata.gz: fe89675916bf6550657478e358d6bf62bebe0385e76cbafc77b910691bbdb537367b339aff9581ecfbf17d149b1c108d536c97a9e4ad6a0b3090e4ea0f172c0d
7
+ data.tar.gz: 7913b899ac389a0939bde4179c4bd5ca0820410ead4723d05bdb8b54b9c634e984c76f85a76e17e34d375eb14099f7017300587081c41c13cd3e06fbd7c2ee3c
data/lib/calculator.rb ADDED
@@ -0,0 +1,17 @@
1
+ class Simple1Calculator
2
+ def self.add(x,y)
3
+ puts " addition :#{x + y}"
4
+ end
5
+
6
+ def self.sub(a,b)
7
+ a - b
8
+ end
9
+
10
+ def self.mul(a,b)
11
+ a * b
12
+ end
13
+
14
+ def self.div (a,b)
15
+ a / b
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple1_calculator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - nirmalkarma03
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-09-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This gem is usefull for doing mathemetics opration
14
+ email: nirmal@ftpls.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/calculator.rb
20
+ homepage: https://rubygems.org/gems/hola
21
+ licenses:
22
+ - MIT
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
+ rubygems_version: 3.2.3
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: calculator!
43
+ test_files: []