lib/rack/amf/config.rb
# Import the configuration file specified. This has the same basic semantics
# as Ruby's built-in +require+ statement but always evaluates the source
# file within the scope of the receiver. The file may exist anywhere on the
# $LOAD_PATH.
Import the configuration file specified. This has the same basic semantics
as Ruby's built-in +require+ statement but always evaluates the source
file within the scope of the receiver. The file may exist anywhere on the
$LOAD_PATH.
Import the configuration file specified . This has the same basic semantics as Ruby ' s built - in + require + statement but always evaluates the source file within the scope of the receiver . The file may exist anywhere on the $LOAD_PATH .
def import(file)
      return false if imported_features.include?(file)
      path = add_file_extension(file, 'rb')
      if path = locate_file_on_load_path(path)
        source = File.read(path)
        imported_features.add(file)
        instance_eval source, path, 1
        true
      else
        raise LoadError, 'no such file to load -- %s' % [file]
      end
    end
def import ( file ) return false if imported_features . include? ( file ) path = add_file_extension ( file , 'rb' ) if path = locate_file_on_load_path ( path ) source = File . read ( path ) imported_features . add ( file ) instance_eval source , path , 1 true else raise LoadError , 'no such file to load -- %s' % [ file ] end end
Import the configuration file specified.
Import the configuration file specified .
file
<not_specific>