method
inherit_convert_attr_reader
v2_4_6 -
Show latest stable
- Class:
RSS::BaseModel
inherit_convert_attr_reader(*attrs)private
No documentation available.
# File lib/rss/rss.rb, line 327
def inherit_convert_attr_reader(*attrs)
attrs.each do |attr|
module_eval( def #{attr}_without_inherit convert(@#{attr}) end def #{attr} if @#{attr} #{attr}_without_inherit elsif @parent @parent.#{attr} else nil end end, *get_file_and_line_from_caller(2))
end
end