arith 0.0.1

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/arith.rb +17 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b2cc8f2cab2a79c19c9a7107fc732f6d068bc28c310507c3c21dcc35a7d62fdc
4
+ data.tar.gz: 824de234b41f7272c2b1bd3ac0ee2812517eef66b941a3df02be976ccbeab4d4
5
+ SHA512:
6
+ metadata.gz: 4349dccce3ebefb549c2dbe35ef5bb73d9aff5b24622d0b6860de7b0ad4286a81d17b28024d337b44995ff49d0cd607ac1f130a76844f948853784b34757a473
7
+ data.tar.gz: 60161cd0b2b210ae3e778d52b8a4c8089447c9e73ca71e2c573d9831133c1c96a4ac36a1c1da929ca1fb4f0412fc32ea23d122ca70bf05c4257d9fa150e41021
data/lib/arith.rb ADDED
@@ -0,0 +1,17 @@
1
+ class Arith
2
+ def self.plus(x, y)
3
+ return x + y
4
+ end
5
+
6
+ def self.minus(x, y)
7
+ return x - y
8
+ end
9
+
10
+ def self.times(x, y)
11
+ return x * y
12
+ end
13
+
14
+ def self.dividedBy(x, y)
15
+ return x / y
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: arith
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - H. R. Branson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A gem providing the four basic arithmetic operations
14
+ email: hrbranson@develomail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/arith.rb
20
+ homepage:
21
+ licenses:
22
+ - Unlicense
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.5.0.dev
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: An arithmetic gem
43
+ test_files: []