module RegexpPropertyValues
Constants
- ALIASES_PATH
- Error
- VALUES_PATH
- VERSION
Public Class Methods
Source
# File lib/regexp_property_values.rb, line 16 def self.[](name) Value.new(name) end
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
Source
# File lib/regexp_property_values.rb, line 24 def self.all @all ||= File.readlines(VALUES_PATH).map { |line| Value.new(line.chomp) } end
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