one-shot method to implant ourselves onto a target object’s class interface in ruby. All later instances will also get ‘us’ for free!
# File lib/buby/extends/scan_issue.rb, line 21 def self.implant(base) return if @implanted base.class.instance_eval { include(ScanIssueHelper) } @implanted = true end
# File lib/buby/extends/scan_issue.rb, line 33 def self.implanted? ; @implanted; end
# File lib/buby/extends/scan_issue.rb, line 27 def http_messages HttpRequestResponseList.new( self.getHttpMessages() ) end
Returns a Ruby URI object derived from the java.net.URL object
# File lib/buby/extends/scan_issue.rb, line 15 def uri @uri ||= URI.parse url.to_s if not url.nil? end