lib/teapot/loader.rb
def load!(path = teapot_path)
			raise MissingTeapotError.new(path) unless File.exist?(path)
			
			script = Script.new(@context, @package)
			
			mtime = File.mtime(path)
			script.instance_eval(path.read, path.to_s)
			
			if script.version == nil
				raise IncompatibleTeapotError.new(@package, "<unspecified>")
			end
			
			return script, mtime
		end
# Load a teapot.rb file relative to the root of the @package.
Load a teapot.rb file relative to the root of the @package.
Load a teapot . rb file relative to the root of the @package .
def load!(path = teapot_path)
			raise MissingTeapotError.new(path) unless File.exist?(path)
			script = Script.new(@context, @package)
			mtime = File.mtime(path)
			script.instance_eval(path.read, path.to_s)
			if script.version == nil
				raise IncompatibleTeapotError.new(@package, "<unspecified>")
			end
			return script, mtime
		end
def load! ( path = teapot_path ) raise MissingTeapotError . new ( path ) unless File . exist? ( path ) script = Script . new ( @context , @package ) mtime = File . mtime ( path ) script . instance_eval ( path . read , path . to_s ) if script . version == nil raise IncompatibleTeapotError . new ( @package , "<unspecified>" ) end return script , mtime end
Load a teapot.rb file relative to the root of the @package.
Load a teapot . rb file relative to the root of the @package .
path
teapot_path