private Method

BaseModel.convert_attr_reader(*attrs)

There's no documentation for this item.

Source Code

# File rss/rss.rb, line 260
def convert_attr_reader(*attrs)
  attrs.each do |attr|
    attr = attr.id2name if attr.kind_of?(Integer)
    module_eval("def \#{attr}\nif @converter\n@converter.convert(@\#{attr})\nelse\n@\#{attr}\nend\nend\n", *get_file_and_line_from_caller(2))
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.