class String

Constants

NUMERIC_INPUT

Public Instance Methods

negation_operation?() click to toggle source
# File lib/utc_rpn_calc/core_ext/string.rb, line 8
def negation_operation?
  self == "~"
end
valid_number?() click to toggle source
# File lib/utc_rpn_calc/core_ext/string.rb, line 4
def valid_number?
  !!match(NUMERIC_INPUT)
end