Module: ComfortableMexicanSofa::Tag
- Included in:
- Asset, Collection, FieldDateTime, FieldInteger, FieldString, FieldText, File, Helper, PageDateTime, PageFile, PageFiles, 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 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
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#page ⇒ Object
Returns the value of attribute page.
-
#params ⇒ Object
Returns the value of attribute params.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Attribute Details
#identifier ⇒ Object
Returns the value of attribute identifier.
15 16 17 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 15 def identifier @identifier end |
#page ⇒ Object
Returns the value of attribute page.
15 16 17 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 15 def page @page end |
#params ⇒ Object
Returns the value of attribute params.
15 16 17 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 15 def params @params end |
#parent ⇒ Object
Returns the value of attribute parent.
15 16 17 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 15 def parent @parent end |