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.
32 33 34 |
# File 'lib/frost.rb', line 32 def supported?(type) [RFC9591, TAPROOT].include?(type) end |
.validate!(type) ⇒ Object
Validate type
39 40 41 |
# File 'lib/frost.rb', line 39 def validate!(type) raise ArgumentError, "Unsupported type: #{type}." unless supported?(type) end |