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, FieldDateTime, FieldInteger, FieldString, FieldText, File, Helper, PageDateTime, PageFile, PageFiles, PageInteger, PageRichText, PageString, PageText, Partial, Snippet

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Attribute Details

#identifierObject

Returns the value of attribute identifier.



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

def identifier
  @identifier
end

#pageObject

Returns the value of attribute page.



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

def page
  @page
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

#parentObject

Returns the value of attribute parent.



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

def parent
  @parent
end