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
|
||||
|
||||
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),
|
||||
do: %RDF.BlankNode{id: id}
|
||||
|
||||
|
|
|
@ -24,19 +24,19 @@ defmodule RDF.Graph do
|
|||
Creates an unnamed `RDF.Graph` with an initial triple.
|
||||
"""
|
||||
def new({_, _, _} = triple),
|
||||
do: new |> add(triple)
|
||||
do: new() |> add(triple)
|
||||
|
||||
@doc """
|
||||
Creates an unnamed `RDF.Graph` with initial triples.
|
||||
"""
|
||||
def new(triples) when is_list(triples),
|
||||
do: new |> add(triples)
|
||||
do: new() |> add(triples)
|
||||
|
||||
@doc """
|
||||
Creates an unnamed `RDF.Graph` with an `RDF.Description`.
|
||||
"""
|
||||
def new(%RDF.Description{} = description),
|
||||
do: new |> add(description)
|
||||
do: new() |> add(description)
|
||||
|
||||
@doc """
|
||||
Creates an empty named `RDF.Graph`.
|
||||
|
@ -66,7 +66,7 @@ defmodule RDF.Graph do
|
|||
Creates an unnamed `RDF.Graph` with initial triples.
|
||||
"""
|
||||
def new(subject, predicate, objects),
|
||||
do: new |> add(subject, predicate, objects)
|
||||
do: new() |> add(subject, predicate, objects)
|
||||
|
||||
@doc """
|
||||
Creates a named `RDF.Graph` with initial triples.
|
||||
|
|
Loading…
Reference in a new issue