# File lib/cgikit.rb, line 1114 def to_s # action url = CKURL.new application if @attr_page then target = @attr_page else target = parent.class.to_s end url.target = target url.parent = parent url.action = @attr_action url.secure = @attr_secure url.query = @attr_query if @attr_query @attr_action = url.url # to_s to_s = '<a' if @attr_href then to_s << " href=\"#@attr_href\"" else to_s << " href=\"#@attr_action\"" end if @attr_target then to_s << " target=\"#@attr_target\"" end to_s << '>' if @attr_string then to_s << @attr_string elsif body then to_s << body end to_s << '</a>' if @attr_disabled == true then to_s = body end to_s end