Class: Brakeman::Messages::Literal

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

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Literal

Returns a new instance of Literal.



180
181
182
# File 'lib/brakeman/messages.rb', line 180

def initialize value
  @value = value.to_s
end

Instance Method Details

#to_htmlObject



188
189
190
# File 'lib/brakeman/messages.rb', line 188

def to_html
  @value
end

#to_sObject



184
185
186
# File 'lib/brakeman/messages.rb', line 184

def to_s
  @value
end