Method: BELParser::Script::Validator.require_script_path
- Defined in:
- lib/bel_parser/script/validator.rb
.require_script_path ⇒ Object
46 47 48 49 50 51 52 53 54 55 |
# File 'lib/bel_parser/script/validator.rb', line 46 def self.require_script_path base_path = File.(File.dirname(__FILE__)) + File::SEPARATOR ['state', 'syntax'].each do |set| Dir[File.join(base_path, set, '*.rb')] .each do |ruby_file| ruby_file.sub!(/^#{Regexp.escape(base_path)}/, '') require_relative ruby_file end end end |