simple_abstract 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +31 -0
- data/VERSION +1 -1
- data/simple_abstract.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -2,6 +2,37 @@
|
|
2
2
|
|
3
3
|
Simple lib to define abstract classes
|
4
4
|
|
5
|
+
== Examples
|
6
|
+
|
7
|
+
require 'rubygems'
|
8
|
+
require 'simple_abstract'
|
9
|
+
|
10
|
+
module AbstractTest
|
11
|
+
@abstract_methods = [:need_to_implement, :need_to_define]
|
12
|
+
|
13
|
+
include AbstractClass
|
14
|
+
end
|
15
|
+
|
16
|
+
module AbstractSomth
|
17
|
+
@abstract_methods = [:some_method]
|
18
|
+
|
19
|
+
include AbstractClass
|
20
|
+
end
|
21
|
+
|
22
|
+
class Test
|
23
|
+
def need_to_implement
|
24
|
+
end
|
25
|
+
|
26
|
+
def need_to_define
|
27
|
+
end
|
28
|
+
|
29
|
+
def some_method
|
30
|
+
end
|
31
|
+
|
32
|
+
include AbstractTest
|
33
|
+
include AbstractSomth
|
34
|
+
end
|
35
|
+
|
5
36
|
== Copyright
|
6
37
|
|
7
38
|
Copyright (c) 2011 Nicklasos. See LICENSE.txt for
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/simple_abstract.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_abstract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nicklasos
|