Module: Buby::ScanIssueHelper Deprecated
- Defined in:
- lib/buby/implants/scan_issue.rb
Overview
Deprecated.
this will change to the new style in the next release
Class Method Summary collapse
-
.implant(base) ⇒ Object
one-shot method to implant ourselves onto a target object’s class interface in ruby.
- .implanted? ⇒ Boolean
Instance Method Summary collapse
- #http_messages ⇒ Object (also: #messages)
-
#uri ⇒ Object
Returns a Ruby URI object derived from the java.net.URL object.
Class Method Details
.implant(base) ⇒ Object
one-shot method to implant ourselves onto a target object’s class interface in ruby. All later instances will also get ‘us’ for free!
20 21 22 23 24 |
# File 'lib/buby/implants/scan_issue.rb', line 20 def self.implant(base) return if @implanted base.class.instance_eval { include(ScanIssueHelper) } @implanted = true end |
.implanted? ⇒ Boolean
32 |
# File 'lib/buby/implants/scan_issue.rb', line 32 def self.implanted? ; @implanted; end |
Instance Method Details
#http_messages ⇒ Object Also known as: messages
26 27 28 |
# File 'lib/buby/implants/scan_issue.rb', line 26 def HttpRequestResponseList.new( self.getHttpMessages() ) end |
#uri ⇒ Object
Returns a Ruby URI object derived from the java.net.URL object
14 15 16 |
# File 'lib/buby/implants/scan_issue.rb', line 14 def uri @uri ||= URI.parse url.to_s if not url.nil? end |