Class: Brakeman::Messages::Version
- Inherits:
-
Object
- Object
- Brakeman::Messages::Version
- Defined in:
- lib/brakeman/messages.rb
Instance Method Summary collapse
-
#initialize(version, lib) ⇒ Version
constructor
A new instance of Version.
- #to_html ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(version, lib) ⇒ Version
Returns a new instance of Version.
208 209 210 211 |
# File 'lib/brakeman/messages.rb', line 208 def initialize version, lib @version = version @library = lib end |
Instance Method Details
#to_html ⇒ Object
217 218 219 |
# File 'lib/brakeman/messages.rb', line 217 def to_html CGI.escapeHTML(self.to_s) end |
#to_s ⇒ Object
213 214 215 |
# File 'lib/brakeman/messages.rb', line 213 def to_s "#{@library} #{@version}" end |