Skip to content

Commit ce6fab3

Browse files
committed
$ mix new oop --module OOP
0 parents  commit ce6fab3

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/_build
2+
/cover
3+
/deps
4+
erl_crash.dump
5+
*.ez

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# OOP
2+
3+
**TODO: Add description**
4+
5+
## Installation
6+
7+
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
8+
9+
1. Add `oop` to your list of dependencies in `mix.exs`:
10+
11+
```elixir
12+
def deps do
13+
[{:oop, "~> 0.0.1"}]
14+
end
15+
```
16+
17+
2. Ensure `oop` is started before your application:
18+
19+
```elixir
20+
def application do
21+
[applications: [:oop]]
22+
end
23+
```
24+

lib/oop.ex

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defmodule OOP do
2+
end

mix.exs

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
defmodule OOP.Mixfile do
2+
use Mix.Project
3+
4+
def project do
5+
[app: :oop,
6+
version: "0.0.1",
7+
elixir: "~> 1.3-dev",
8+
build_embedded: Mix.env == :prod,
9+
start_permanent: Mix.env == :prod,
10+
deps: deps]
11+
end
12+
13+
# Configuration for the OTP application
14+
#
15+
# Type "mix help compile.app" for more information
16+
def application do
17+
[applications: [:logger]]
18+
end
19+
20+
# Dependencies can be Hex packages:
21+
#
22+
# {:mydep, "~> 0.3.0"}
23+
#
24+
# Or git/path repositories:
25+
#
26+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
27+
#
28+
# Type "mix help deps" for more examples and options
29+
defp deps do
30+
[]
31+
end
32+
end

test/oop_test.exs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
defmodule OOPTest do
2+
use ExUnit.Case
3+
doctest OOP
4+
5+
test "the truth" do
6+
assert 1 + 1 == 2
7+
end
8+
end

test/test_helper.exs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ExUnit.start()

0 commit comments

Comments
 (0)