Design a Basic Calculator
Learn to create a basic calculator in Ruby using classes.
Problem
Write a class named Calculator
that contains two methods:
add
: To add two numbersminus
: To subtract two numbers
Expected output
We'll test the class by creating an object of the class, and invoking its methods on the object to verify that they return the ...