arithmeticCalculator 0.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/arithmetic_calculator.rb +14 -0
  3. metadata +42 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f308a4f423495a24e3fae85d3a6587ea1b874e144195358fcbc5293ff9b6cfe0
4
+ data.tar.gz: b4074a34518e1af35769c8b94a1760e24154b4cf82751dfa1a570655f6dd649d
5
+ SHA512:
6
+ metadata.gz: b06dba83ffdbfb40a7e180cf8411b79920425fc468a676a586dc96abe60896a0fe2c26e3eeadeaa588d37ae419090b2a846841e56addcd8d0a77a181bb225488
7
+ data.tar.gz: 4dceb5006f3cc06282460d00203990e46627fe5d6b20d734d67190464db3aa9358ead30168510e9cfceec4a9b32897c7734b980adff4021c5f4efb6604e999eb
@@ -0,0 +1,14 @@
1
+ class ArithmeticCalculator
2
+ def self.add(n1,n2)
3
+ result = n1 + n2
4
+ end
5
+ def self.subtract(n1,n2)
6
+ result = n1 - n2
7
+ end
8
+ def self.multiply(n1,n2)
9
+ result = n1 * n2
10
+ end
11
+ def self.divide(n1,n2)
12
+ result = n1 / n2
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: arithmeticCalculator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Shryni
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Performs 4 basic operations.
14
+ email: x18199011@student.ncirl.ie
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/arithmetic_calculator.rb
20
+ homepage: http://rubygems.org/gems/calculate
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.0.6
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: calculator app
42
+ test_files: []