module RPNCalculator

Constants

ALLOWED_OPERATORS
INPUT_PROCESSOR
INVALID_ARGUMENTS_REGEX
OPERATION_CLASSES
OPERATION_PROCESSOR
VERSION

Public Instance Methods

calculate(expression) click to toggle source
# File lib/rpn-calculator.rb, line 30
def calculate(expression)
  INPUT_PROCESSOR.process(expression)
end
start_cli_tool() click to toggle source
# File lib/rpn-calculator.rb, line 23
def start_cli_tool
  # Here is where we could read and write to another input
  # using stdin and stdout by default
  processor = CLI.new(IoInterface::Standard.new, INPUT_PROCESSOR)
  processor.start
end