boncey / ruby-podcast

simple library and command line utility for creating podcast files from a directory of mp3 files
23 stars 19 forks source link

Replace attr_reader and attr_writer with attr_accessor ? #4

Open ghost opened 11 years ago

ghost commented 11 years ago
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 ```