Module: Locale::SystemJRuby
- Extended by:
- SystemBase, SystemWin32Table
- Defined in:
- lib/locale/jruby.rb
Overview
Locale::SystemJRuby module for JRuby This is a low-level class. Application shouldn’t use this directly.
Class Method Summary collapse
-
.default_locale ⇒ Object
:nodoc:.
Methods included from SystemBase
charset, get_charset, locale_from_env, system
Class Method Details
.default_locale ⇒ Object
:nodoc:
28 29 30 31 32 |
# File 'lib/locale/jruby.rb', line 28 def default_locale #:nodoc: locale = java.util.Locale.getDefault charset = java.nio.charset.Charset.defaultCharset.name Locale::Object.new(locale, nil, charset) end |