[BioRuby-cvs] bioruby/lib/bio/db/pdb pdb.rb,1.24,1.25
Naohisa Goto
ngoto at dev.open-bio.org
Fri Dec 28 13:35:33 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/db/pdb
In directory dev.open-bio.org:/tmp/cvs-serv32724/lib/bio/db/pdb
Modified Files:
pdb.rb
Log Message:
Ruby 1.9 compliant: changed to avoid "RuntimeError: implicit
argument passing of super from method defined by define_method()
is not supported. Specify all arguments explicitly." error.
Index: pdb.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/pdb/pdb.rb,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** pdb.rb 18 Dec 2007 13:48:42 -0000 1.24
--- pdb.rb 28 Dec 2007 13:35:30 -0000 1.25
***************
*** 234,238 ****
klass.module_eval {
symbolary.each do |x|
! define_method(x) { do_parse; super }
end
}
--- 234,238 ----
klass.module_eval {
symbolary.each do |x|
! define_method(x) { do_parse; super() }
end
}
***************
*** 268,272 ****
klass.module_eval {
define_method(:initialize_from_string) { |str|
! r = super
do_parse
r
--- 268,272 ----
klass.module_eval {
define_method(:initialize_from_string) { |str|
! r = super(str)
do_parse
r
More information about the bioruby-cvs
mailing list