Class: EncodedId::HexRepresentation
- Inherits:
-
Object
- Object
- EncodedId::HexRepresentation
- Defined in:
- lib/encoded_id/hex_representation.rb
Overview
@rbs!
type encodeableHexValue = Array[String] | String
Instance Method Summary collapse
- #hex_as_integers(hexs) ⇒ Object
-
#initialize(hex_digit_encoding_group_size) ⇒ HexRepresentation
constructor
A new instance of HexRepresentation.
- #integers_as_hex(integers) ⇒ Object
Constructor Details
#initialize(hex_digit_encoding_group_size) ⇒ HexRepresentation
Returns a new instance of HexRepresentation.
14 15 16 |
# File 'lib/encoded_id/hex_representation.rb', line 14 def initialize(hex_digit_encoding_group_size) @hex_digit_encoding_group_size = validate_hex_digit_encoding_group_size(hex_digit_encoding_group_size) end |
Instance Method Details
#hex_as_integers(hexs) ⇒ Object
19 20 21 |
# File 'lib/encoded_id/hex_representation.rb', line 19 def hex_as_integers(hexs) integer_representation(hexs) end |
#integers_as_hex(integers) ⇒ Object
24 25 26 |
# File 'lib/encoded_id/hex_representation.rb', line 24 def integers_as_hex(integers) integers_to_hex_strings(integers) end |