Sha256: f02539ff541141aeecf41d3f6866216b7e64c33841d8abe96f9f1f76e06e7e1f
Contents?: true
Size: 707 Bytes
Versions: 5
Compression:
Stored size: 707 Bytes
Contents
module Vedeu module Templating # Converts a directive found in a template into a Vedeu::Stream object. # # @api private class Directive include Vedeu::Templating::Helpers # @param code [String] # @return [Vedeu::Stream] def self.process(code) new(code).process end # @param code [String] # @return [Vedeu::Templating::Directive] def initialize(code) @code = code end # @return [Vedeu::Stream] def process eval(code, proc {}.binding) end protected # @!attribute [r] code # @return [String] attr_reader :code end # Directive end # Templating end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems