Class: Integer

Inherits:
Object
  • Object
show all
Extended by:
VeryAnts::Int
Defined in:
lib/very_ants.rb

Constant Summary collapse

@@c =
1

Class Method Summary collapse

Instance Method Summary collapse

Methods included from VeryAnts::Int

divide, minus, mod, mult, plus

Class Method Details

.how_antsy_do_you_feel(i) ⇒ Object



9
10
11
# File 'lib/very_ants.rb', line 9

def self.how_antsy_do_you_feel(i)
  @@c = i
end

.i_forget_how_antsy_i_feelObject



13
14
15
# File 'lib/very_ants.rb', line 13

def self.i_forget_how_antsy_i_feel
  @@c
end

Instance Method Details

#%(other) ⇒ Object



33
34
35
# File 'lib/very_ants.rb', line 33

def %(other)
  Integer::mod(self, other, @@c)
end

#*(other) ⇒ Object



25
26
27
# File 'lib/very_ants.rb', line 25

def *(other)
  Integer::mult(self, other, @@c)
end

#+(other) ⇒ Object



17
18
19
# File 'lib/very_ants.rb', line 17

def +(other)
  Integer::plus(self, other, @@c)
end

#-(other) ⇒ Object



21
22
23
# File 'lib/very_ants.rb', line 21

def -(other)
  Integer::minus(self, other, @@c)
end

#/(other) ⇒ Object



29
30
31
# File 'lib/very_ants.rb', line 29

def /(other)
  Integer::divide(self, other, @@c)
end