Class: Eggshell::Bundles::Basics

Inherits:
Object
  • Object
show all
Includes:
Bundle
Defined in:
lib/eggshell/bundles/basics-old.rb

Defined Under Namespace

Modules: StdFunctions Classes: BasicBlocks, BasicMacros, ControlMacros, InlineMacros, SectionBlocks

Constant Summary collapse

BUNDLE_ID =
'basics'
EE =
Eggshell::ExpressionEvaluator

Class Method Summary collapse

Methods included from Bundle

included

Class Method Details

.new_instance(proc, opts = nil) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/eggshell/bundles/basics-old.rb', line 5

def self.new_instance(proc, opts = nil)
	BasicBlocks.new.set_processor(proc)
	SectionBlocks.new.set_processor(proc)
	InlineMacros.new.set_processor(proc)
	BasicMacros.new.set_processor(proc)
	ControlMacros.new.set_processor(proc)

	proc.register_functions('', StdFunctions::FUNC_NAMES)
	proc.register_functions('sprintf', Kernel)
end