-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
57 lines (36 loc) · 1.21 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
= README
revision:: $Rev: 1 $
release:: $Release: 1.0.0 $
copyright:: copyright(c) 2006 kuwata-lab.com all rights reserved.
== Introduction
'abstract.rb' is a library which enable you to define abstract method in Ruby.
The followings are examples:
## example1. (shorter notation)
require 'rubygems' # if installed with 'gem install'
require 'abstract'
class Foo
abstract_method 'arg1, arg2=""', :method1, :method2, :method3
end
## example2. (RDoc friendly notation)
require 'rubygems' # if installed with 'gem install'
require 'abstract'
class Bar
# ... method1 description ...
def method1(arg1, arg2="")
not_implemented
end
# ... method2 description ...
def method2(arg1, arg2="")
not_implemented
end
end
Abstract method makes your code more descriptive.
It is useful even for dynamic language such as Ruby.
== Installation
* Type 'gem install -r abstract' with root account if you have installed RubyGems.
* Or type 'ruby setup.rb' with root account if you can be root account.
* Or copy lib/abstract.rb into proper directory such as '/usr/local/lib/ruby/site_ruby'.
== License
Ruby's
== Copyright
copyright(c) 2006 kuwata-lab.com all rights reserved.