You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ruby 1.9.2 Calling rss.channel.link or rss.channel.title throwing the below error.
Please Fix.
ruby-1.9.2-p0 > rss.channel.link
NoMethodError: private method link' called for #<SimpleRSS:0x9aaf59c> from (irb):29 from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:44:instart'
from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in start' from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands.rb:23:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in
'
ruby-1.9.2-p0 > rss.channel.title
NoMethodError: private method title' called for #<SimpleRSS:0x9aaf59c> from (irb):30 from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:44:instart'
from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in start' from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands.rb:23:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in'
The text was updated successfully, but these errors were encountered:
hi,I have found the point.You need to change file "simple-rss.rb"
In ruby 1.9.2 ,when you add method to class in the scope of "private", the method will be private.
So if you shift line 72,ie 'private' to line 137 after method 'parse',it works well.
In ruby 1.9.2 Calling rss.channel.link or rss.channel.title throwing the below error.
Please Fix.
ruby-1.9.2-p0 > rss.channel.link
'NoMethodError: private method
link' called for #<SimpleRSS:0x9aaf59c> from (irb):29 from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:44:in
start'from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in
start' from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands.rb:23:in
<top (required)>'from script/rails:6:in
require' from script/rails:6:in
ruby-1.9.2-p0 > rss.channel.title
NoMethodError: private method
title' called for #<SimpleRSS:0x9aaf59c> from (irb):30 from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:44:in
start'from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands/console.rb:8:in
start' from /home/dckap/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/commands.rb:23:in
<top (required)>'from script/rails:6:in
require' from script/rails:6:in
'The text was updated successfully, but these errors were encountered: