zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

draft.ex (336B)


      1 defprotocol Absinthe.Blueprint.Draft do
      2   @moduledoc false
      3 
      4   def convert(node, root)
      5 end
      6 
      7 defimpl Absinthe.Blueprint.Draft, for: List do
      8   def convert(nodes, root) do
      9     Enum.map(nodes, &Absinthe.Blueprint.Draft.convert(&1, root))
     10   end
     11 end
     12 
     13 defimpl Absinthe.Blueprint.Draft, for: Atom do
     14   def convert(atom, _) do
     15     atom
     16   end
     17 end