Sha256: a7258854cf72ea0339eda2f03efd326fe8d7bcb4c72707c419421131f38a02ff

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

class CmsTag::PageString < CmsBlock
  
  include CmsTag
  
  def self.regex_tag_signature(label = nil)
    label ||= /\w+/
    /<\s*cms:page:(#{label}):string\s*\/?>/
  end
  
  def regex_tag_signature
    self.class.regex_tag_signature(label)
  end
  
  def content=(value)
    write_attribute(:content_string, value)
  end
  
  def content
    read_attribute(:content_string)
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.9 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.7 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.6 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.5 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.4 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.3 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.2 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.1 lib/comfortable_mexican_sofa/cms_tag/page_string.rb
comfortable_mexican_sofa-1.0.0 lib/comfortable_mexican_sofa/cms_tag/page_string.rb