Sha256: 95beb350ed0dfdad7227afe50a06ccc88a219d6d0b3e21256efdf1771bba2a71
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
module Rack module Blogengine class Document attr_accessor :path, :html, :title def to_hash hash = {} instance_variables.each do |var| hash[var.to_s.delete("@").to_sym] = instance_variable_get(var) unless var.to_s == "@title" end hash end def exec_content_operator(documents, target) @html.scan(/\{\%(.*?)\%\}/).each do |contentoperator| operator = Operator.new(target) operator.send(contentoperator[0].strip.to_sym, documents, @html) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.1.5 | lib/rack/blogengine/document.rb |
rack-blogengine-0.1.4 | lib/rack/blogengine/document.rb |