Module: Enterprise::FileLoader
- Defined in:
- lib/enterprise/file_loader.rb
Class Method Summary collapse
Class Method Details
.load(filename, options = nil, &block) ⇒ Object
3 4 5 6 |
# File 'lib/enterprise/file_loader.rb', line 3 def self.load filename, = nil, &block sexml = Nokogiri::XML(File.read(filename)) { |cmd| cmd.noblanks } Kernel.eval sexml.to_ruby, TOPLEVEL_BINDING end |