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!
21 22 23 24 25 |
# File 'lib/buby/implants/scan_issue.rb', line 21 def self.implant(base) return if @implanted base.class.instance_eval { include(ScanIssueHelper) } @implanted = true end |
.implanted? ⇒ Boolean
33 |
# File 'lib/buby/implants/scan_issue.rb', line 33 def self.implanted? ; @implanted; end |
Instance Method Details
#http_messages ⇒ Object Also known as: messages
27 28 29 |
# File 'lib/buby/implants/scan_issue.rb', line 27 def HttpRequestResponseList.new( self.getHttpMessages() ) end |
#uri ⇒ Object
Returns a Ruby URI object derived from the java.net.URL object
15 16 17 |
# File 'lib/buby/implants/scan_issue.rb', line 15 def uri @uri ||= URI.parse url.to_s if not url.nil? end |