Method: Unicode::Version.unicode_version
- Defined in:
- lib/unicode/version.rb
.unicode_version(ruby_version = RUBY_VERSION) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/unicode/version.rb', line 43 def self.unicode_version(ruby_version = RUBY_VERSION) if ruby_version == RUBY_VERSION && ruby_version >= RB_CONFIG_UNICODE_AVAILABLE RbConfig::CONFIG["UNICODE_VERSION"] else RUBY_UNICODE_VERSIONS[ruby_version] || RUBY_UNICODE_VERSIONS[ruby_version.to_f] end end |