Flowdock
def_csv_element(name, type=nil) public

No documentation

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

Hide source
# File lib/rss/maker/base.rb, line 160
        def def_csv_element(name, type=nil)
          def_other_element_without_accessor(name)
          attr_reader(name)
          converter = ""
          if type == :integer
            converter = "{|v| Integer(v)}"
          end
          module_eval("def \#{name}=(value)\n@\#{name} = Utils::CSV.parse(value)\#{converter}\nend\n", __FILE__, __LINE__ + 1)
        end
Register or log in to add new notes.