Module: S2P::ComponentDebugger
- Defined in:
- lib/s2p/component.rb
Constant Summary collapse
- DEBUG_TEMPLATE =
" <div class=\"border border-solid p-3 border-danger\">\n <strong><pre><%= c.class %></pre></strong>\n \n <% if c.respond_to?(:debugging_info) %>\n <pre><%= c.debugging_info.pretty_inspect %></pre>\n <% end %>\n </div>\n"
Instance Method Summary collapse
Instance Method Details
#to_html ⇒ Object
89 90 91 92 93 94 95 |
# File 'lib/s2p/component.rb', line 89 def to_html if self.class.const_defined?(:DEBUG_TEMPLATE) t(self.class::DEBUG_TEMPLATE, c: self, x: self.x) else t(DEBUG_TEMPLATE, c: self, x: self.x) end end |