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.
Files changed (4) hide show
  1. data/README.rdoc +31 -0
  2. data/VERSION +1 -1
  3. data/simple_abstract.gemspec +1 -1
  4. metadata +3 -3
@@ -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.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simple_abstract}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nicklasos"]
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nicklasos