Class: Brakeman::Messages::FileName
- Inherits:
-
Object
- Object
- Brakeman::Messages::FileName
- Defined in:
- lib/brakeman/messages.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ FileName
constructor
A new instance of FileName.
- #to_html ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(file) ⇒ FileName
Returns a new instance of FileName.
132 133 134 |
# File 'lib/brakeman/messages.rb', line 132 def initialize file @file = file end |
Instance Method Details
#to_html ⇒ Object
140 141 142 |
# File 'lib/brakeman/messages.rb', line 140 def to_html "<span class=\"filename\">#{CGI.escapeHTML(@file)}</span>" end |
#to_s ⇒ Object
136 137 138 |
# File 'lib/brakeman/messages.rb', line 136 def to_s "`#{@file}`" end |