Flowdock
csv_attr_reader(*attrs) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rss/rss.rb, line 372
    def csv_attr_reader(*attrs)
      separator = nil
      if attrs.last.is_a?(Hash)
        options = attrs.pop
        separator = options[:separator]
      end
      separator ||= ", "
      attrs.each do |attr|
        attr = attr.id2name if attr.kind_of?(Integer)
        module_eval("attr_reader(:\#{attr})\ndef \#{attr}_content\nif @\#{attr}.nil?\n@\#{attr}\nelse\n@\#{attr}.join(\#{separator.dump})\nend\nend\n", __FILE__, __LINE__ + 1)
      end
    end
Register or log in to add new notes.