Class: Srx::Data::LanguageRule

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

Overview

SRX <languagerule> element

Defined Under Namespace

Classes: Rule

Constant Summary

Constants inherited from XmlWrapper

XmlWrapper::NS

Instance Method Summary collapse

Instance Method Details

#nameString

Returns:

  • (String)


110
111
112
# File 'lib/srx/data.rb', line 110

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

#rulesArray<Rule>

Returns:



115
116
117
# File 'lib/srx/data.rb', line 115

def rules
  @rules ||= xpath(:rule).map { |rule| Rule.new(rule) }
end