kinemat/lib/inspect/cylindrical.ex
James Harton f74836dfd3 Update to Elixir 1.6
* Run code formatter.
* Credo doesn't like `mix format`'s line length.
* Fix failing tests re `Angle`.
2018-01-19 10:40:56 +13:00

14 lines
324 B
Elixir

defimpl Inspect, for: Kinemat.Cylindrical do
alias Kinemat.Cylindrical
import Inspect.Algebra
@spec inspect(Cylindrical.t(), any) :: String.t()
def inspect(angle, opts) do
angle =
angle
|> Map.from_struct()
|> Enum.into([])
concat(["#Kinemat.Point<", to_doc(angle, opts), ">"])
end
end