Method: Amp::Help::ErbHelpEntry#text
- Defined in:
- lib/amp-front/help/help.rb
#text(options = {}) ⇒ String
Returns the help text to display for this entry.
For an ERB entry, we run ERB on the text in the entry, while also exposing the options variable as local, so the ERB can access the user’s runtime options.
205 206 207 208 209 210 |
# File 'lib/amp-front/help/help.rb', line 205 def text( = {}) full_text = super() erb = ERB.new(full_text, 0, "-") erb.result binding end |