Class: Brakeman::Messages::Plain

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

Instance Method Summary collapse

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_htmlObject



202
203
204
# File 'lib/brakeman/messages.rb', line 202

def to_html
  CGI.escapeHTML(@value)
end

#to_sObject



198
199
200
# File 'lib/brakeman/messages.rb', line 198

def to_s
  @value
end