aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/locale.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
commit287a34ae0dfc23e4158f67cb7783d239f202c368 (patch)
tree5e35d5b41aae961b37cf6632f60c42f51c7aa775 /lib/irb/locale.rb
parent9b52ae2e6491bb5d6c59e1799449f6268baf6f89 (diff)
downloadruby-287a34ae0dfc23e4158f67cb7783d239f202c368.tar.gz
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/locale.rb')
-rw-r--r--lib/irb/locale.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index d4e2a0244a..9c96d15525 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -6,7 +6,7 @@
#
# --
#
-#
+#
#
module IRB
class Locale
@@ -30,7 +30,7 @@ module IRB
def initialize(locale = nil)
@lang = @territory = @encoding_name = @modifier = nil
- @locale = locale || ENV["IRB_LANG"] || ENV["LC_MESSAGES"] || ENV["LC_ALL"] || ENV["LANG"] || "C"
+ @locale = locale || ENV["IRB_LANG"] || ENV["LC_MESSAGES"] || ENV["LC_ALL"] || ENV["LANG"] || "C"
if m = LOCALE_NAME_RE.match(@locale)
@lang, @territory, @encoding_name, @modifier = m[:language], m[:territory], m[:codeset], m[:modifier]
@@ -50,7 +50,7 @@ module IRB
def String(mes)
mes = super(mes)
if @encoding
- mes.encode(@encoding)
+ mes.encode(@encoding)
else
mes
end
@@ -109,7 +109,7 @@ module IRB
end
alias toplevel_load load
-
+
def load(file, priv=nil)
dir = File.dirname(file)
dir = "" if dir == "."
@@ -125,7 +125,7 @@ module IRB
return real_load(lc_path, priv) if lc_path
end
raise LoadError, "No such file to load -- #{file}"
- end
+ end
def real_load(path, priv)
src = MagicFile.open(path){|f| f.read}