class Macros4Cuke::Templating::StaticText
Class used internally by the template engine. Represents a static piece of text from a template. A static text is a text that is reproduced verbatim when rendering a template.
Attributes
source[R]
The static text extracted from the original template.
Public Class Methods
new(aSourceText)
click to toggle source
@param aSourceText [String] A piece of text extracted
from the template that must be rendered verbatim.
# File lib/macros4cuke/templating/static-text.rb, line 21 def initialize(aSourceText) @source = aSourceText end
Public Instance Methods
render(_, _)
click to toggle source
Render the static text. This method has the same signature as the {Engine#render} method. @return [String] Static text is returned verbatim (“as is”)
# File lib/macros4cuke/templating/static-text.rb, line 28 def render(_, _) return source end