Class: ComfortableMexicanSofa::Tag::PageText
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_text.rb', line 4
def self.regex_tag_signature(label = nil)
label ||= /[\w\-]+/
/\{\{\s*cms:page:(#{label}):?(?:text)?\s*\}\}/
end
|
Instance Method Details
#content ⇒ Object
13
14
15
|
# File 'lib/comfortable_mexican_sofa/tags/page_text.rb', line 13
def content
block.content
end
|
#content=(value) ⇒ Object
9
10
11
|
# File 'lib/comfortable_mexican_sofa/tags/page_text.rb', line 9
def content=(value)
block.content = value
end
|