Class: Deplate::Element::RegionSyntaxAlt

Inherits:
Region
  • Object
show all
Defined in:
lib/deplate/mod/syntax-region-alt.rb

Overview

syntax-alt-region.rb @Author: Thomas Link (micathom AT gmail com) @Website: deplate.sf.net/ @License: GPL (see www.gnu.org/licenses/gpl.txt) @Created: 27-Aug-2004. @Revision: 0.21

Description: This module provides an alternative syntax for regions, like:

Region

content

Instance Method Summary collapse

Instance Method Details

#get_argsObject



30
31
32
# File 'lib/deplate/mod/syntax-region-alt.rb', line 30

def get_args
    @match[4]
end

#get_endrxObject



22
23
24
# File 'lib/deplate/mod/syntax-region-alt.rb', line 22

def get_endrx
    /^#{get_indent}#{Regexp.escape(@match[2])}(\s+.*)?$/
end

#get_indentObject



34
35
36
# File 'lib/deplate/mod/syntax-region-alt.rb', line 34

def get_indent
    @match[1]
end

#get_nameObject



26
27
28
# File 'lib/deplate/mod/syntax-region-alt.rb', line 26

def get_name
    @match[3]
end