add more empty parentheses to bareword function calls for Elixir 1.4
This commit is contained in:
parent
f35086cd7b
commit
a32ca93f4c
2 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ defmodule RDF.BlankNode do
|
||||||
|
|
||||||
@type t :: module
|
@type t :: module
|
||||||
|
|
||||||
def new, do: %RDF.BlankNode{id: make_ref}
|
def new, do: %RDF.BlankNode{id: make_ref()}
|
||||||
def new(id) when is_atom(id) or is_binary(id) or is_integer(id),
|
def new(id) when is_atom(id) or is_binary(id) or is_integer(id),
|
||||||
do: %RDF.BlankNode{id: id}
|
do: %RDF.BlankNode{id: id}
|
||||||
|
|
||||||
|
|
|
@ -24,19 +24,19 @@ defmodule RDF.Graph do
|
||||||
Creates an unnamed `RDF.Graph` with an initial triple.
|
Creates an unnamed `RDF.Graph` with an initial triple.
|
||||||
"""
|
"""
|
||||||
def new({_, _, _} = triple),
|
def new({_, _, _} = triple),
|
||||||
do: new |> add(triple)
|
do: new() |> add(triple)
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Creates an unnamed `RDF.Graph` with initial triples.
|
Creates an unnamed `RDF.Graph` with initial triples.
|
||||||
"""
|
"""
|
||||||
def new(triples) when is_list(triples),
|
def new(triples) when is_list(triples),
|
||||||
do: new |> add(triples)
|
do: new() |> add(triples)
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Creates an unnamed `RDF.Graph` with an `RDF.Description`.
|
Creates an unnamed `RDF.Graph` with an `RDF.Description`.
|
||||||
"""
|
"""
|
||||||
def new(%RDF.Description{} = description),
|
def new(%RDF.Description{} = description),
|
||||||
do: new |> add(description)
|
do: new() |> add(description)
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Creates an empty named `RDF.Graph`.
|
Creates an empty named `RDF.Graph`.
|
||||||
|
@ -66,7 +66,7 @@ defmodule RDF.Graph do
|
||||||
Creates an unnamed `RDF.Graph` with initial triples.
|
Creates an unnamed `RDF.Graph` with initial triples.
|
||||||
"""
|
"""
|
||||||
def new(subject, predicate, objects),
|
def new(subject, predicate, objects),
|
||||||
do: new |> add(subject, predicate, objects)
|
do: new() |> add(subject, predicate, objects)
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
Creates a named `RDF.Graph` with initial triples.
|
Creates a named `RDF.Graph` with initial triples.
|
||||||
|
|
Loading…
Reference in a new issue