repo.or.cz
/
botlist.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
adding all of botlist, initial add
[botlist.git]
/
openbotlist
/
WEB-INF
/
lib
/
ruby
/
rspec
/
lib
/
spec
/
example
/
module_reopening_fix.rb
blob
dc01dd6668e527edc03ffc68443c5e029f0d5f19
1
module Spec
2
module Example
3
# This is a fix for ...Something in Ruby 1.8.6??... (Someone fill in here please - Aslak)
4
module ModuleReopeningFix
5
def child_modules
6
@child_modules ||= []
7
end
8
9
def included(mod)
10
child_modules << mod
11
end
12
13
def include(mod)
14
super
15
child_modules.each do |child_module|
16
child_module.__send__(:include, mod)
17
end
18
end
19
end
20
end
21
end