module Unicode::Version
Constants
- RB_CONFIG_EMOJI_AVAILABLE
- RB_CONFIG_UNICODE_AVAILABLE
- RUBY_EMOJI_VERSIONS
- RUBY_UNICODE_VERSIONS
- VERSION
Public Class Methods
emoji_version(ruby_version = RUBY_VERSION)
click to toggle source
# File lib/unicode/version.rb, line 43 def self.emoji_version(ruby_version = RUBY_VERSION) if ruby_version == RUBY_VERSION && ruby_version >= RB_CONFIG_EMOJI_AVAILABLE RbConfig::CONFIG["UNICODE_EMOJI_VERSION"] else RUBY_EMOJI_VERSIONS[ruby_version] || RUBY_EMOJI_VERSIONS[ruby_version.to_f] end end
unicode_version(ruby_version = RUBY_VERSION)
click to toggle source
# File lib/unicode/version.rb, line 35 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