method
uri_convert_attr_reader
uri_convert_attr_reader(*attrs)
private
Hide source
# File lib/rss/rss.rb, line 307 def uri_convert_attr_reader(*attrs) attrs.each do |attr| attr = attr.id2name if attr.kind_of?(Integer) module_eval( def #{attr}_without_base convert(@#{attr}) end def #{attr} value = #{attr}_without_base return nil if value.nil? if /\\A[a-z][a-z0-9+.\\-]*:/i =~ value value else "\#{base}\#{value}" end end, *get_file_and_line_from_caller(2)) end end