Class: RailsDoctor::Reporters::Html
- Inherits:
-
Object
- Object
- RailsDoctor::Reporters::Html
- Includes:
- ERB::Util
- Defined in:
- lib/rails_doctor/reporters/html.rb
Instance Method Summary collapse
-
#initialize(result) ⇒ Html
constructor
A new instance of Html.
- #render ⇒ Object
Constructor Details
#initialize(result) ⇒ Html
Returns a new instance of Html.
11 12 13 |
# File 'lib/rails_doctor/reporters/html.rb', line 11 def initialize(result) @result = result end |
Instance Method Details
#render ⇒ Object
15 16 17 |
# File 'lib/rails_doctor/reporters/html.rb', line 15 def render ERB.new(template, trim_mode: "-").result(binding).gsub(/[ \t]+$/, "") end |