This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'strscan' | |
# Methods can be added here to expand functionality available to the REPL | |
module Methods | |
def self.add(*nums) | |
nums.reduce(&:+) | |
end | |
def self.multiply(*nums) | |
nums.reduce(&:*) |