Module: ComfortableMexicanSofa::Tag

Overview

This module provides all Tag classes with neccessary methods. Example class that will behave as a Tag:

class MySpecialTag
  include ComfortableMexicanSofa::Tag
  ...
end

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Asset, Collection, FieldBoolean, FieldDateTime, FieldInteger, FieldRichText, FieldString, FieldText, File, Helper, PageDateTime, PageFile, PageFiles, PageInteger, PageMarkdown, PageRichText, PageString, PageText, Partial, Snippet, Template

Constant Summary collapse

TOKENIZER_REGEX =
/(\{\{\s*cms:[^{}]*\}\})|((?:\{?[^{])+|\{+)/
IDENTIFIER_REGEX =
/\w+[\-\.\w]+\w+/

Instance Attribute Summary collapse

Instance Attribute Details

#blockableObject

Returns the value of attribute blockable.



16
17
18
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16

def blockable
  @blockable
end

#identifierObject

Returns the value of attribute identifier.



16
17
18
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16

def identifier
  @identifier
end

#namespaceObject

Returns the value of attribute namespace.



16
17
18
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16

def namespace
  @namespace
end

#paramsObject

Returns the value of attribute params.



16
17
18
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16

def params
  @params
end

#parentObject

Returns the value of attribute parent.



16
17
18
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16

def parent
  @parent
end