Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 4
- Log:
Initial import of Radiant 0.50 sources from a downloaded Tarball.
Radiant is a Ruby On Rails based lightweight content management
system.
- Author:
- adh
- Date:
- Sat Jul 22 16:47:40 +0100 2006
- Size:
- 571 Bytes
1 | class Module |
2 | def delegate_to(object, *collection) |
3 | collection = [*collection] |
4 | is_hash = ((collection.size == 1) and collection.first.kind_of?(Hash)) |
5 | hash = is_hash ? collection.first : nil |
6 | |
7 | delegate_to_method = lambda do |as, method| |
8 | module_eval() do |
9 | define_method(as) do |*args| |
10 | send(object).send(method, *args) |
11 | end |
12 | end |
13 | end |
14 | |
15 | if hash |
16 | hash.each { |as, method| delegate_to_method.call(as, method) } |
17 | else |
18 | collection.each { |method| delegate_to_method.call(method, method) } |
19 | end |
20 | end |
21 | end |