Class: Srx::Data::LanguageMap
- Inherits:
-
XmlWrapper
- Object
- XmlWrapper
- Srx::Data::LanguageMap
- Defined in:
- lib/srx/data.rb
Overview
SRX <languagemap> element
Constant Summary
Constants inherited from XmlWrapper
Instance Method Summary collapse
Instance Method Details
#language_pattern ⇒ Regexp
162 163 164 165 166 |
# File 'lib/srx/data.rb', line 162 def language_pattern @language_pattern ||= @xml['languagepattern'].then do |pattern| IcuRegex.compile(pattern) if pattern end end |
#language_rule_name ⇒ String
157 158 159 |
# File 'lib/srx/data.rb', line 157 def language_rule_name @language_rule_name ||= @xml['languagerulename'] end |