Class: CmsTag::FieldInteger
- Inherits:
-
CmsBlock
- Object
- ActiveRecord::Base
- CmsBlock
- CmsTag::FieldInteger
show all
- Includes:
- CmsTag
- Defined in:
- lib/comfortable_mexican_sofa/cms_tag/field_integer.rb
Constant Summary
Constants included
from CmsTag
TOKENIZER_REGEX
Instance Attribute Summary
Attributes included from CmsTag
#params, #parent, #record_id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from CmsBlock
initialize_or_find
Class Method Details
.regex_tag_signature(label = nil) ⇒ Object
5
6
7
8
|
# File 'lib/comfortable_mexican_sofa/cms_tag/field_integer.rb', line 5
def self.regex_tag_signature(label = nil)
label ||= /[\w\-]+/
/\{\{\s*cms:field:(#{label}):integer\s*\}\}/
end
|
Instance Method Details
#content ⇒ Object
18
19
20
|
# File 'lib/comfortable_mexican_sofa/cms_tag/field_integer.rb', line 18
def content
read_attribute(:content)
end
|
#content=(value) ⇒ Object
14
15
16
|
# File 'lib/comfortable_mexican_sofa/cms_tag/field_integer.rb', line 14
def content=(value)
write_attribute(:content, value)
end
|
#regex_tag_signature ⇒ Object
10
11
12
|
# File 'lib/comfortable_mexican_sofa/cms_tag/field_integer.rb', line 10
def regex_tag_signature
self.class.regex_tag_signature(label)
end
|
#render ⇒ Object
22
23
24
|
# File 'lib/comfortable_mexican_sofa/cms_tag/field_integer.rb', line 22
def render
''
end
|