Improve type specifications and documentation
- Added missing type specifications for Hello function and rules - Updated documentation for the Deserialize protocol - Cleaned up IBAN validation function documentation - Enhanced test fixture generation with clearer parsing and error messages
This commit is contained in:
@@ -9,7 +9,7 @@ defmodule IbanEx.Country.Template do
|
||||
|
||||
@callback size() :: size()
|
||||
@callback rule() :: rule()
|
||||
@callback rules() :: []
|
||||
@callback rules() :: keyword()
|
||||
@callback rules_map() :: %{}
|
||||
@callback bban_fields() :: [atom()]
|
||||
@callback bban_size() :: non_neg_integer()
|
||||
@@ -66,7 +66,7 @@ def bban_fields(), do: rules_map() |> Map.keys()
|
||||
def rules_map(), do: rules() |> Map.new()
|
||||
|
||||
@impl IbanEx.Country.Template
|
||||
@spec rules() :: []
|
||||
@spec rules() :: keyword()
|
||||
def rules() do
|
||||
{rules, _bban_size} = calculate_rules()
|
||||
rules
|
||||
|
||||
Reference in New Issue
Block a user