You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

kalkulaator.rb 186 B

2 years ago
1234567891011121314
  1. class Kalkulaator
  2. def push(n)
  3. @args ||= []
  4. @args << n
  5. end
  6. def liida
  7. @args.inject(0) { |n, sum| sum + n }
  8. end
  9. def jaga
  10. @args[0].to_f / @args[1].to_f
  11. end
  12. end

No Description

Contributors (1)