Sha256: 91af7d34ada1d4c5d7dbd3933c25543b5d6b644f72296572c07f68f6273a1255
Contents?: true
Size: 301 Bytes
Versions: 14
Compression:
Stored size: 301 Bytes
Contents
# frozen_string_literal: true module Nanoc::CLI # @api private module Transform module Port RANGE = (0x0001..0xffff).freeze def self.call(data) Integer(data).tap do |int| raise 'not a valid port' unless RANGE.cover?(int) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems