Skip to content

Instantly share code, notes, and snippets.

Avatar

Noredeen Al-Zu'bi noredeen-alzubi

View GitHub Profile
View parser.rb
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(&:*)