Class: Brakeman::Messages::Literal
- Inherits:
-
Object
- Object
- Brakeman::Messages::Literal
- Defined in:
- lib/brakeman/messages.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
- #to_html ⇒ Object
- #to_s ⇒ Object
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_html ⇒ Object
188 189 190 |
# File 'lib/brakeman/messages.rb', line 188 def to_html @value end |
#to_s ⇒ Object
184 185 186 |
# File 'lib/brakeman/messages.rb', line 184 def to_s @value end |