Sha256: 7d91d5e368f0649f0e38cc554ea353208d39ad58401ea7219022ed8eb64b670e

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.17 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.16 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.15 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.14 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.13 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.12 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb
comfortable_mexican_sofa-1.0.11 lib/comfortable_mexican_sofa/cms_tag/page_integer.rb