This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Haml::Filters::CodeConcern | |
| extend ActiveSupport::Concern | |
| def render(text) | |
| <<~CODE | |
| <div class="sa-code-snippet-wrapper"> | |
| <div class="sa-code-snippet"> | |
| <div class="code-title">HAML Snippet</div> | |
| <button class="copy-code-button">Copy</button> | |
| <pre class="chroma"><code>#{Haml::Helpers.preserve text}</code></pre> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # With reference to | |
| # Just a run-down of TracePoint | |
| # | |
| # https://medium.com/@baweaver/exploring-tracepoint-in-ruby-part-one-example-code-2cf9b1a1b956 | |
| # Rotoscope tracks method invocations but not arguments | |
| # | |
| # https://github.com/Shopify/rotoscope | |
| # | |
| # Rack::MethodTrace - allows us to see which methods are called more than once and which are memoized |
OlderNewer