Module: Eggshell::Bundles::Loader

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

Overview

This bundle is used to interpret eggshell configs.

Defined Under Namespace

Classes: LoaderMacro

Constant Summary collapse

BUNDLE_ID =
'loader'

Class Method Summary collapse

Methods included from Bundle

included

Class Method Details

.class_from_string(str) ⇒ Object



9
10
11
12
13
# File 'lib/eggshell/bundles/loader.rb', line 9

def self.class_from_string(str)
	str.split('::').inject(Object) do |mod, class_name|
		mod.const_get(class_name)
	end
end

.new_instance(proc, opts = nil) ⇒ Object



5
6
7
# File 'lib/eggshell/bundles/loader.rb', line 5

def self.new_instance(proc, opts = nil)
	LoaderMacro.new.set_processor(proc)
end