Class: General::GInclude
- Inherits:
-
GPrePartial
- Object
- GPrePartial
- General::GInclude
- Defined in:
- lib/gprepartials/ginclude.rb
Overview
Created: 1 - 30 - 2017
Constant Summary collapse
- REGEX =
Regular expression matches GInclude
/\A@@include\s+(?<filename>\w+(\/\w+)*?)\r?\n/
Instance Method Summary collapse
-
#apply ⇒ Object
Applies the GInclude.
-
#initialize(match) ⇒ GInclude
constructor
Creates a new GInclude.
Methods inherited from GPrePartial
Constructor Details
#initialize(match) ⇒ GInclude
Creates a new GInclude
Parameters: match - the match result returned from the parser
37 38 39 40 |
# File 'lib/gprepartials/ginclude.rb', line 37 def initialize(match) super @filename = match[:filename] end |