Class Amrita::CCompiledTemplate
|
|
# File lib/amrita/template.rb, line 452
def use_compiler
false
end
# File lib/amrita/template.rb, line 456
def setup_template
instruction = ByteCode::RubyMethodInstruction.new(self, :execute)
@iset = InstructionSet.new instruction
@amulet_seeds = {}
amulet_specs.each do |k, v|
methodname = "execute_amulet_" + k.to_s
instruction = ByteCode::RubyMethodInstruction[self, methodname.intern]
iset = InstructionSet.new instruction
seed = CCompiledAmuletSeed.new(self, v)
seed.iset = iset
@amulet_seeds[k] = seed
end
end
# File lib/amrita/template.rb, line 470
def amulet_specs
{}
end