method

inherit_convert_attr_reader

v1_8_7_72 - Show latest stable - Class: RSS::BaseModel
inherit_convert_attr_reader(*attrs)
private

No documentation available.

# File lib/rss/rss.rb, line 290
    def inherit_convert_attr_reader(*attrs)
      attrs.each do |attr|
        attr = attr.id2name if attr.kind_of?(Integer)
        module_eval("def \#{attr}_without_inherit\nconvert(@\#{attr})\nend\n\ndef \#{attr}\nif @\#{attr}\n\#{attr}_without_inherit\nelsif @parent\n@parent.\#{attr}\nelse\nnil\nend\nend\n", *get_file_and_line_from_caller(2))
      end
    end