Sha256: 29ad7636634b164906529d2ae0281a67a8b95bad482f92a263afe66a094f8a31
Contents?: true
Size: 849 Bytes
Versions: 8
Compression:
Stored size: 849 Bytes
Contents
require 'uri' class Buby class ScanIssuesList < BubyArrayWrapper def initialize(obj) ScanIssueHelper.implant(obj[0]) if obj.size > 0 super(obj) end end module ScanIssueHelper # Returns a Ruby URI object derived from the java.net.URL object def uri @uri ||= URI.parse url.to_s if not url.nil? end # one-shot method to implant ourselves onto a target object's class # interface in ruby. All later instances will also get 'us' for free! def self.implant(base) return if @implanted base.class.instance_eval { include(ScanIssueHelper) } @implanted = true end def http_messages HttpRequestResponseList.new( self.getHttpMessages() ) end alias messages http_messages alias messages http_messages def self.implanted? ; @implanted; end end end
Version data entries
8 entries across 8 versions & 2 rubygems