Class: ComfortableMexicanSofa::Tag::PageRichText
- Inherits:
-
Object
- Object
- ComfortableMexicanSofa::Tag::PageRichText
show all
- Includes:
- ComfortableMexicanSofa::Tag
- Defined in:
- lib/comfortable_mexican_sofa/tags/page_rich_text.rb
Constant Summary
TOKENIZER_REGEX
Instance Attribute Summary
#label, #page, #params, #parent
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.regex_tag_signature(label = nil) ⇒ Object
4
5
6
7
|
# File 'lib/comfortable_mexican_sofa/tags/page_rich_text.rb', line 4
def self.regex_tag_signature(label = nil)
label ||= /[\w\-]+/
/\{\{\s*cms:page:(#{label}):rich_text\s*\}\}/
end
|
Instance Method Details
#content ⇒ Object
13
14
15
|
# File 'lib/comfortable_mexican_sofa/tags/page_rich_text.rb', line 13
def content
block.content
end
|
#content=(value) ⇒ Object
9
10
11
|
# File 'lib/comfortable_mexican_sofa/tags/page_rich_text.rb', line 9
def content=(value)
block.content = value
end
|