Class: Duxml::GrammarClass
Overview
contains Duxml::Rules and can apply them by validating XML or qualifying user input reporting Duxml::Errors to History as needed
Constant Summary
Constants included from Duxml
Constants included from Meta
Instance Attribute Summary collapse
-
#rules ⇒ Object
(also: #nodes)
readonly
Returns the value of attribute rules.
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(rules = []) ⇒ GrammarClass
constructor
A new instance of GrammarClass.
Methods included from Grammar
#add_observer, #defined?, #description, #get_rule, #history, import, #inspect, #name, #qualify, #validate, xml
Methods included from RelaxNG
Methods included from Duxml
#create, #load, #log, #relaxng, #save, #validate
Methods included from Meta
Methods included from Saxer
Methods included from LazyOx
Methods included from PatternMaker
#get_child_patterns, #get_existing_attr_patterns, #get_null_attr_patterns, #get_null_child_patterns, #get_relationships
Methods included from Spreadsheet
Methods included from Reportable
Constructor Details
#initialize(rules = []) ⇒ GrammarClass
31 32 33 |
# File 'lib/duxml/meta/grammar.rb', line 31 def initialize(rules=[]) @rules = rules end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Duxml::LazyOx
Instance Attribute Details
#rules ⇒ Object (readonly) Also known as: nodes
Returns the value of attribute rules.
36 37 38 |
# File 'lib/duxml/meta/grammar.rb', line 36 def rules @rules end |