Module: ComfortableMexicanSofa::Tag

Included in:
FieldDateTime, FieldInteger, FieldString, FieldText, Helper, PageDateTime, PageInteger, PageRichText, PageString, PageText, Partial, Snippet
Defined in:
lib/comfortable_mexican_sofa/tag.rb

Overview

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

class MySpecialTag
  include CmsTag
  ...
end

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: FieldDateTime, FieldInteger, FieldString, FieldText, Helper, PageDateTime, PageInteger, PageRichText, PageString, PageText, Partial, Snippet

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label.



11
12
13
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11

def label
  @label
end

#pageObject

Returns the value of attribute page.



11
12
13
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11

def page
  @page
end

#paramsObject

Returns the value of attribute params.



11
12
13
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11

def params
  @params
end

#parentObject

Returns the value of attribute parent.



11
12
13
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11

def parent
  @parent
end