[Groonga-commit] groonga/groonga at 8c16dc2 [master] Fix a typo...

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Oct 7 16:45:15 JST 2015


Kouhei Sutou	2015-10-07 16:45:15 +0900 (Wed, 07 Oct 2015)

  New Revision: 8c16dc2570ab8171d39dde1c1d982d8da420a583
  https://github.com/groonga/groonga/commit/8c16dc2570ab8171d39dde1c1d982d8da420a583

  Message:
    Fix a typo...
    
        absolete ->
        absolute
             ^

  Modified files:
    lib/mrb/scripts/require.rb

  Modified: lib/mrb/scripts/require.rb (+6 -6)
===================================================================
--- lib/mrb/scripts/require.rb    2015-10-07 17:26:27 +0900 (a824e92)
+++ lib/mrb/scripts/require.rb    2015-10-07 16:45:15 +0900 (4f13399)
@@ -8,7 +8,7 @@ class ScriptLoader
   end
 
   def load_once
-    if absolete_path?(@base_path)
+    if absolute_path?(@base_path)
       loaded = load_once_path(@base_path)
       if loaded.nil?
         raise LoadError, error_message
@@ -17,7 +17,7 @@ class ScriptLoader
       end
     else
       $LOAD_PATH.each do |load_path|
-        unless absolete_path?(load_path)
+        unless absolute_path?(load_path)
           load_path = File.expand_path(load_path)
         end
         loaded = load_once_path(File.join(load_path, @base_path))
@@ -32,20 +32,20 @@ class ScriptLoader
     "cannot load such file -- #{@base_path}"
   end
 
-  def absolete_path?(path)
+  def absolute_path?(path)
     path.start_with?("/")
   end
 
   def load_once_path(path)
-    loaded = load_once_absolete_path(path)
+    loaded = load_once_absolute_path(path)
     return loaded unless loaded.nil?
 
     return nil unless File.extname(path).empty?
 
-    load_once_absolete_path("#{path}.rb")
+    load_once_absolute_path("#{path}.rb")
   end
 
-  def load_once_absolete_path(path)
+  def load_once_absolute_path(path)
     return false if $".include?(path)
     return false if @@loading_paths.key?(path)
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index