Class: Srx::Data::LanguageMap

Inherits:
XmlWrapper
  • Object
show all
Defined in:
lib/srx/data.rb

Overview

SRX <languagemap> element

Constant Summary

Constants inherited from XmlWrapper

XmlWrapper::NS

Instance Method Summary collapse

Instance Method Details

#language_patternRegexp

Returns:

  • (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_nameString

Returns:

  • (String)


157
158
159
# File 'lib/srx/data.rb', line 157

def language_rule_name
  @language_rule_name ||= @xml['languagerulename']
end