Module: NumbersManipulation
- Defined in:
- lib/pipes/numbers.rb
Class Method Summary collapse
- .add(content, args) ⇒ Object
- .multiply(content, args) ⇒ Object
- .substract(content, args) ⇒ Object
- .to_int(content, args) ⇒ Object
Class Method Details
.add(content, args) ⇒ Object
10 11 12 |
# File 'lib/pipes/numbers.rb', line 10 def self.add(content, args) content + args[0].to_i end |
.multiply(content, args) ⇒ Object
6 7 8 |
# File 'lib/pipes/numbers.rb', line 6 def self.multiply(content, args) content * args[0].to_i end |
.substract(content, args) ⇒ Object
14 15 16 |
# File 'lib/pipes/numbers.rb', line 14 def self.substract(content, args) content - args[0].to_i end |
.to_int(content, args) ⇒ Object
2 3 4 |
# File 'lib/pipes/numbers.rb', line 2 def self.to_int(content, args) content.to_i end |