Sha256: 6c712cedd30513eb51eb123e4f4f23297fb82f4b23b0d353cacd3952300957de

Contents?: true

Size: 157 Bytes

Versions: 2

Compression:

Stored size: 157 Bytes

Contents

class String
  NUMERIC_INPUT = /\A[a-fA-F0-9]+\z/

  def valid_number?
    !!match(NUMERIC_INPUT)
  end

  def negation_operation?
    self == "~"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
utc_rpn_calc-0.1.0 lib/utc_rpn_calc/core_ext/string.rb
utc_rpn_calc-0.0.1 lib/utc_rpn_calc/core_ext/string.rb