Module: FROST::Type
- Defined in:
- lib/frost.rb
Constant Summary collapse
- RFC9591 =
:rfc9591- TAPROOT =
:taproot
Class Method Summary collapse
-
.supported?(type) ⇒ Boolean
Check whether valid type or not.
-
.validate!(type) ⇒ Object
Validate type.
Class Method Details
.supported?(type) ⇒ Boolean
Check whether valid type or not.
33 34 35 |
# File 'lib/frost.rb', line 33 def supported?(type) [RFC9591, TAPROOT].include?(type) end |
.validate!(type) ⇒ Object
Validate type
40 41 42 |
# File 'lib/frost.rb', line 40 def validate!(type) raise ArgumentError, "Unsupported type: #{type}." unless supported?(type) end |