Class: Duxml::ValueRuleClass
- Inherits:
-
RuleClass
- Object
- PatternClass
- RuleClass
- Duxml::ValueRuleClass
- Includes:
- RngValueRule, ValueRule
- Defined in:
- lib/duxml/meta/grammar/rule/value_rule.rb,
lib/duxml/meta/grammar/relax_ng/value_rule.rb
Overview
rule that states what values a given attribute name is allowed to have
Constant Summary
Constants included from ValueRule
Duxml::ValueRule::CDATA_EXPR, Duxml::ValueRule::ENTITY_EXPR, Duxml::ValueRule::ID_EXPR, Duxml::ValueRule::NMTOKEN_EXPR, Duxml::ValueRule::NOTATION_EXPR
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
Attributes inherited from RuleClass
Attributes included from Reportable
Attributes inherited from PatternClass
Attributes included from Duxml
Attributes included from Saxer
Instance Method Summary collapse
-
#initialize(_attr_name, _statement) ⇒ ValueRuleClass
constructor
A new instance of ValueRuleClass.
Methods included from RngValueRule
Methods included from LazyOx
Methods included from ValueRule
#abstract?, #applies_to?, #description, #qualify
Methods included from Rule
#applies_to?, #description, #history, #qualify
Methods included from Reportable
Methods included from Pattern
#<=>, #abstract?, #concrete?, #description, #name, #object, #relationship, #simple_name, #xml
Methods included from Duxml
Methods included from Saxer
Constructor Details
#initialize(_attr_name, _statement) ⇒ ValueRuleClass
Returns a new instance of ValueRuleClass.
14 15 16 |
# File 'lib/duxml/meta/grammar/rule/value_rule.rb', line 14 def initialize(_attr_name, _statement) @attr_name, @statement = _attr_name, _statement end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Duxml::LazyOx
Instance Attribute Details
#attr_name ⇒ Object (readonly)
Returns the value of attribute attr_name.
18 19 20 |
# File 'lib/duxml/meta/grammar/rule/value_rule.rb', line 18 def attr_name @attr_name end |