Tilt::MarkabyTemplate

Markaby github.com/markaby/markaby

Public Class Methods

builder_class() click to toggle source
    # File lib/tilt/markaby.rb, line 7
 7:     def self.builder_class
 8:       @builder_class ||= Class.new(Markaby::Builder) do
 9:         def __capture_markaby_tilt__(&block)
10:           __run_markaby_tilt__ do
11:             text capture(&block)
12:           end
13:         end
14:       end
15:     end
engine_initialized?() click to toggle source
    # File lib/tilt/markaby.rb, line 17
17:     def self.engine_initialized?
18:       defined? ::Markaby
19:     end

Public Instance Methods

__capture_markaby_tilt__(&block) click to toggle source
    # File lib/tilt/markaby.rb, line 9
 9:         def __capture_markaby_tilt__(&block)
10:           __run_markaby_tilt__ do
11:             text capture(&block)
12:           end
13:         end
evaluate(scope, locals, &block) click to toggle source
    # File lib/tilt/markaby.rb, line 28
28:     def evaluate(scope, locals, &block)
29:       builder = self.class.builder_class.new({}, scope)
30:       builder.locals = locals
31: 
32:       if data.kind_of? Proc
33:         (class << builder; self end).send(:define_method, :__run_markaby_tilt__, &data)
34:       else
35:         builder.instance_eval           def __run_markaby_tilt__            #{data}          end, __FILE__, __LINE__
36:       end
initialize_engine() click to toggle source
    # File lib/tilt/markaby.rb, line 21
21:     def initialize_engine
22:       require_template_library 'markaby'
23:     end
prepare() click to toggle source
    # File lib/tilt/markaby.rb, line 25
25:     def prepare
26:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.