Module: Nanoc::CLI::Transform::Port Private
- Defined in:
- lib/nanoc/cli/transform.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- RANGE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
(0x0001..0xffff)
Class Method Summary collapse
- .call(data) ⇒ Object private
Class Method Details
.call(data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 |
# File 'lib/nanoc/cli/transform.rb', line 10 def self.call(data) Integer(data).tap do |int| raise 'not a valid port' unless RANGE.cover?(int) end end |