Class: Brakeman::Messages::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/brakeman/messages.rb

Instance Method Summary collapse

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_htmlObject


217
218
219
# File 'lib/brakeman/messages.rb', line 217

def to_html
  CGI.escapeHTML(self.to_s)
end

#to_sObject


213
214
215
# File 'lib/brakeman/messages.rb', line 213

def to_s
  "#{@library} #{@version}"
end