lib/rulebow/system.rb
# Import from another file, or glob of files, relative to project root.
#
# TODO: Should importing be relative to the importing file?
#
# Returns nothing.
Import from another file, or glob of files, relative to project root.

Returns nothing.
Import from another file or glob of files relative to project root . Returns nothing .
def import(*globs)
      globs.each do |glob|
        Dir[glob].each do |file|
          next unless File.file?(file)  
          next if @scripts.include?(file)
          @scripts << file
          module_eval(File.read(file), file)
        end
      end
    end
def import ( * globs ) globs . each do | glob | Dir [ glob ] . each do | file | next unless File . file? ( file ) next if @scripts . include? ( file ) @scripts << file module_eval ( File . read ( file ) , file ) end end end
Import from another file, or glob of files, relative to project root.
Import from another file or glob of files relative to project root .
#if File.relative?(glob) #  dir = Dir.pwd  #session.root #File.dirname(caller[0]) #  glob = File.join(dir, glob) #end # add warning
globs
<not_specific>