Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace attr_reader and attr_writer with attr_accessor ? #4

Open
ghost opened this issue Sep 12, 2013 · 0 comments
Open

Replace attr_reader and attr_writer with attr_accessor ? #4

ghost opened this issue Sep 12, 2013 · 0 comments
Assignees

Comments

@ghost
Copy link

ghost commented Sep 12, 2013

I'm watching this right now to create an RSS feed for a news-show I'd like to have on iPhone. Here https://raw.github.com/boncey/ruby-podcast/master/lib/podcast.rb
the guy uses attr_writer/reader I wonder, I'm always using just attr_accessor: isn't it the same?

Hi,

I am not atmosx, but he pointed this out on IRC. So I took the liberty to file this issue :P

attr_reader :title, :link, :description, :image, :base, :language, :version, :about
attr_writer :title, :link, :description, :image, :base, :language, :version, :about

could be replaced with:

attr_accessor :title, :link, :description, :image, :base, :language, :version, :about
@ghost ghost assigned boncey Sep 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant