Class: Brakeman::Messages::Plain
- Inherits:
-
Object
- Object
- Brakeman::Messages::Plain
- Defined in:
- lib/brakeman/messages.rb
Instance Method Summary collapse
-
#initialize(string) ⇒ Plain
constructor
A new instance of Plain.
- #to_html ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(string) ⇒ Plain
Returns a new instance of Plain.
194 195 196 |
# File 'lib/brakeman/messages.rb', line 194 def initialize string @value = string end |
Instance Method Details
#to_html ⇒ Object
202 203 204 |
# File 'lib/brakeman/messages.rb', line 202 def to_html CGI.escapeHTML(@value) end |
#to_s ⇒ Object
198 199 200 |
# File 'lib/brakeman/messages.rb', line 198 def to_s @value end |