# File lib/rhc/rest/base.rb, line 56 def link_href(sym, params=nil, resource=nil, &block) if (l = link(sym)) && (h = l['href']) h = h.gsub(/:\w+/){ |s| params[s].nil? ? s : URI.escape(params[s], URI_ESCAPE_REGEX) } if params h = "#{h}/#{resource}" if resource return h end yield if block_given? end