Current section
Files
Jump to
Current section
Files
src/objects@document.erl
-module(objects@document).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([doc_to_string/1, doc_to_list/1, doc_to_tuple/1]).
-export_type([fireball_document/0]).
-type fireball_document() :: {fireball_document, binary(), binary()}.
-file("/export/gleam/fireball/src/objects/document.gleam", 8).
-spec doc_to_string(fireball_document()) -> binary().
doc_to_string(Doc) ->
<<<<(erlang:element(2, Doc))/binary, ";"/utf8>>/binary,
(erlang:element(3, Doc))/binary>>.
-file("/export/gleam/fireball/src/objects/document.gleam", 13).
-spec doc_to_list(fireball_document()) -> list(binary()).
doc_to_list(Doc) ->
[erlang:element(2, Doc), erlang:element(3, Doc)].
-file("/export/gleam/fireball/src/objects/document.gleam", 18).
-spec doc_to_tuple(fireball_document()) -> {binary(), binary()}.
doc_to_tuple(Doc) ->
{erlang:element(2, Doc), erlang:element(3, Doc)}.