Module: Nibbler::HexProcessor
Overview
Accepts various types of input and returns an array of hex digit chars
Instance Method Summary collapse
-
#process(*args) ⇒ Array<String>
Accepts various types of input and returns an array of hex digit chars Invalid input is disregarded.
Instance Method Details
#process(*args) ⇒ Array<String>
Accepts various types of input and returns an array of hex digit chars Invalid input is disregarded
13 14 15 |
# File 'lib/nibbler/hex_processor.rb', line 13 def process(*args) args.map { |arg| convert(arg) }.flatten.compact.map(&:upcase) end |