[Kde-bindings] String is no longer Enumerable on Ruby 1.9.1
airh2002 at oak.dti.ne.jp
airh2002 at oak.dti.ne.jp
Wed Mar 18 22:23:59 UTC 2009
String is no longer Enumerable on Ruby 1.9.1, and String#each is
nonexistent.
For QtRuby, I find String#each usage on rbqtapi.
I suppose below:
145c145
< candidates.each do |candidate|
---
> candidates.send(RUBY_VERSION >= '1.9.0'? :each_line : :each) do
|candidate|
This is useful for before 1.8.x and after 1.9.x.
Youhei Kondou
More information about the Kde-bindings
mailing list