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
Methods included from SystemBase
charset, get_charset, locale_from_env, system
Class Method Details
.default_locale ⇒ Object
28
29
30
31
32
|
# File 'lib/locale/jruby.rb', line 28
def default_locale locale = java.util.Locale.getDefault
charset = java.nio.charset.Charset.defaultCharset.name
Locale::Object.new(locale, nil, charset)
end
|