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
-
#label ⇒ Object
Returns the value of attribute label.
-
#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
#label ⇒ Object
Returns the value of attribute label.
11 12 13 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11 def label @label end |
#page ⇒ Object
Returns the value of attribute page.
11 12 13 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11 def page @page end |
#params ⇒ Object
Returns the value of attribute params.
11 12 13 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11 def params @params end |
#parent ⇒ Object
Returns the value of attribute parent.
11 12 13 |
# File 'lib/comfortable_mexican_sofa/tag.rb', line 11 def parent @parent end |