simpl_calc123 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/simpl_calc123.rb +17 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 45f1a588fd1e125a4954f6c8319edac2db00f549538a95b0242706a115809c0f
4
+ data.tar.gz: 7fb61fa7b79d813ccbe5ddeefb16c9b89275380c6a9d7d0912af65ef644f6608
5
+ SHA512:
6
+ metadata.gz: 1341ca7ffb9a6c5a3d83e35e7bd071c5e1c1422f856ee7aba9eae2447eb1013c5ceff854abfed46676a7c332ef76fa37c6f107f65d9291c14c2551c399cd6e91
7
+ data.tar.gz: 0d3bc1e5eaa50c49c8a62694a82127f21d3308b930c4737f96b44b1c63023499007752002ed650b6312aa0fbe1d3433e4e28dec9d1d8008411358032e8e1e841
@@ -0,0 +1,17 @@
1
+ class Simpl_calc123
2
+ def add(x,y)
3
+ puts "The sum is #{x+y}"
4
+ end
5
+
6
+ def sub(x,y)
7
+ puts "The sum is #{x-y}"
8
+ end
9
+
10
+ def mul(x,y)
11
+ puts "The sum is #{x*y}"
12
+ end
13
+
14
+ def div(x,y)
15
+ puts "The sum is #{x/y}"
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simpl_calc123
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - G.Srikanth Reddy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-04-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This gem is going to provide basic arithmetic calculations
14
+ email: srikanth.cse@nmrec.edu.in
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/simpl_calc123.rb
20
+ homepage: https://rubygems.org/gems/simpl_calc123
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.1.4
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: Simple calculator!!
43
+ test_files: []