Method: YARD::Templates::Template#erb
- Defined in:
- lib/yard/templates/template.rb
#erb(section) { ... } ⇒ String
Returns the contents of the ERB rendered section.
285 286 287 288 289 290 |
# File 'lib/yard/templates/template.rb', line 285 def erb(section, &block) method_name = ErbCache.method_for(cache_filename(section)) do erb_with(cache(section), cache_filename(section)) end send(method_name, &block) end |