class General::GPrePartial

Includes another file in the template

Author: Anshul Kharbanda Created: 1 - 30 - 2017

Public Class Methods

new(match) click to toggle source

Creates a new GPrePartial

Parameters: match - the match result returned from the parser

# File lib/gprepartials/gprepartial.rb, line 33
def initialize(match); @text = match.to_s; end

Public Instance Methods

apply() click to toggle source

Applies the GPrePartial

Return: the value returned from the executed GPrePartial

# File lib/gprepartials/gprepartial.rb, line 38
def apply; @text; end
to_s() click to toggle source

Returns the string representation of the GPrePartial

Return: the string representation of the GPrePartial

# File lib/gprepartials/gprepartial.rb, line 43
def to_s; @text; end