Class: Arith

Inherits:
Object
  • Object
show all
Defined in:
lib/arith.rb

Class Method Summary collapse

Class Method Details

.dividedBy(x, y) ⇒ Object



14
15
16
# File 'lib/arith.rb', line 14

def self.dividedBy(x, y)
  return x / y
end

.minus(x, y) ⇒ Object



6
7
8
# File 'lib/arith.rb', line 6

def self.minus(x, y)
  return x - y
end

.plus(x, y) ⇒ Object



2
3
4
# File 'lib/arith.rb', line 2

def self.plus(x, y)
  return x + y
end

.times(x, y) ⇒ Object



10
11
12
# File 'lib/arith.rb', line 10

def self.times(x, y)
  return x * y
end