Sha256: 20b0c249783c945819acb1bc02b04727c25867f796c4f4f8688d33153bafa316

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

module Stack
  module Templates
    class Article
      include Template
      include Parsable
      
      attr_accessor :content
      
      def initialize(*args)
        super
        
        parse!
      end
      
      def write!(*args)
        super
      end
      
      def transform(content = self.raw)
       self.content = super
       
       self.content
      end
      
      def payload
        super.merge({
          :content => self.content
        })
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stack-0.0.9 lib/stack/templates/article.rb
stack-0.0.8 lib/stack/templates/article.rb