module RegexpPropertyValues
Constants
- ALIASES_PATH
- Error
- VALUES_PATH
- VERSION
Public Class Methods
[](name)
click to toggle source
# File lib/regexp_property_values.rb, line 16 def self.[](name) Value.new(name) end
alias_hash()
click to toggle source
# File lib/regexp_property_values.rb, line 28 def self.alias_hash @alias_hash ||= File.readlines(ALIASES_PATH).map do |line| line.chomp.split(';').map { |name| Value.new(name) } end.to_h end
all()
click to toggle source
# File lib/regexp_property_values.rb, line 24 def self.all @all ||= File.readlines(VALUES_PATH).map { |line| Value.new(line.chomp) } end
all_for_current_ruby()
click to toggle source
# File lib/regexp_property_values.rb, line 20 def self.all_for_current_ruby @all_for_current_ruby ||= all.select(&:supported_by_current_ruby?) end
update(ucd_path: nil, emoji_path: nil)
click to toggle source
# File lib/regexp_property_values.rb, line 34 def self.update(ucd_path: nil, emoji_path: nil) Updater.call(ucd_path: ucd_path, emoji_path: emoji_path) end