Sha256: ba38848bd0319cde9b1d2a07c16aabf5ee8c70e1c8416202a8b82124a7e02c53

Contents?: true

Size: 413 Bytes

Versions: 15

Compression:

Stored size: 413 Bytes

Contents

class CmsTag::FieldText < CmsBlock
  
  include CmsTag
  
  def self.regex_tag_signature(label = nil)
    label ||= /\w+/
    /\{\{\s*cms:field:(#{label}):?(?:text)?\s*?\}\}/
  end
  
  def regex_tag_signature
    self.class.regex_tag_signature(label)
  end
  
  def content=(value)
    write_attribute(:content, value)
  end
  
  def content
    read_attribute(:content)
  end
  
  def render
    ''
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.32 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.31 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.30 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.29 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.28 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.27 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.26 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.25 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.24 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.23 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.22 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.21 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.20 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.19 lib/comfortable_mexican_sofa/cms_tag/field_text.rb
comfortable_mexican_sofa-1.0.18 lib/comfortable_mexican_sofa/cms_tag/field_text.rb