Module: Eggshell::Bundles::Basic

Includes:
Bundle
Defined in:
lib/eggshell/bundles/basics.rb

Defined Under Namespace

Classes: BasicFormatHandlers, ControlLoopMacros, CoreMacros, DataLoaderMacro, ListBlocks, SectionBlocks, TableBlock, TextBlocks

Constant Summary collapse

BUNDLE_ID =
'basics'
EE =
Eggshell::ExpressionEvaluator
BH =
Eggshell::BlockHandler
MH =
Eggshell::MacroHandler
FH =
Eggshell::FormatHandler

Class Method Summary collapse

Methods included from Bundle

included

Class Method Details

.new_instance(proc, opts = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/eggshell/bundles/basics.rb', line 8

def self.new_instance(proc, opts = nil)
	TextBlocks.new.set_processor(proc, opts)
	TableBlock.new.set_processor(proc, opts)
	ListBlocks.new.set_processor(proc, opts)
	SectionBlocks.new.set_processor(proc, opts)
	
	CoreMacros.new.set_processor(proc, opts)
	ControlLoopMacros.new.set_processor(proc, opts)
	DataLoaderMacro.new.set_processor(proc, opts)
	
	BasicFormatHandlers.new.set_processor(proc, opts)

	#proc.register_functions('', StdFunctions::FUNC_NAMES)
	proc.register_functions(Kernel, 'sprintf')
	proc.register_functions(Eggshell::Bundles::BasicFunctions, 'length,str_match,str_split,arr_push,arr_pop,arr_delete,map_put,map_delete')
end