Module: ComfortableMexicanSofa::Tag
- Included in:
- Asset, Collection, FieldBoolean, FieldDateTime, FieldInteger, FieldRichText, FieldString, FieldText, File, Helper, PageDateTime, PageFile, PageFiles, PageInteger, PageMarkdown, PageRichText, PageString, PageText, Partial, Snippet, Template
- 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, 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
-
#blockable ⇒ Object
Returns the value of attribute blockable.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#params ⇒ Object
Returns the value of attribute params.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Attribute Details
#blockable ⇒ Object
Returns the value of attribute blockable.
16 17 18 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16 def blockable @blockable end |
#identifier ⇒ Object
Returns the value of attribute identifier.
16 17 18 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16 def identifier @identifier end |
#namespace ⇒ Object
Returns the value of attribute namespace.
16 17 18 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16 def namespace @namespace end |
#params ⇒ Object
Returns the value of attribute params.
16 17 18 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16 def params @params end |
#parent ⇒ Object
Returns the value of attribute parent.
16 17 18 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 16 def parent @parent end |