18.1
.
18.1
.
full/0 | Return full version of Erlang/OTP. |
major/0 | Return major version of Erlang/OTP. |
minor/0 | Return minor version of Erlang/OTP. |
parse/1 | Parse binary as Erlang/OTP version. |
patch/0 | Return patch version of Erlang/OTP. |
to_tuple/0 | Return parsed version of Erlang/OTP. |
full() -> binary()
Return full version of Erlang/OTP.
major() -> binary()
Return major version of Erlang/OTP.
minor() -> binary()
Return minor version of Erlang/OTP.
parse(Bin::binary()) -> {binary(), binary(), binary()}
Parse binary as Erlang/OTP version.
When patch version isn't declered, third element of the tuple is empty binary <<"">>
. following like:
parse(<<"18.1">>) # => {<<"18">>, <<"1">>, <<>>}
When patch version includes many periods, third element of the tuple just returns it. following like:
parse(<<"18.1.0.1">>) # => {<<"18">>, <<"1">>, <<"0.1">>}
patch() -> binary()
Return patch version of Erlang/OTP.
When patch version isn't declered, this function returns empty binary <<>>
.
<<"0.1">>
.
to_tuple() -> {binary(), binary(), binary()}
Return parsed version of Erlang/OTP.
Generated by EDoc, Oct 16 2015, 02:09:48.