Class: Rubyang::Database::SchemaTree::Must
- Inherits:
-
Object
- Object
- Rubyang::Database::SchemaTree::Must
- Defined in:
- lib/rubyang/database/schema_tree.rb
Overview
must start
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#initialize(schema_node, schema) ⇒ Must
constructor
A new instance of Must.
Constructor Details
#initialize(schema_node, schema) ⇒ Must
Returns a new instance of Must.
32 33 34 35 36 37 38 39 40 |
# File 'lib/rubyang/database/schema_tree.rb', line 32 def initialize schema_node, schema @schema_node = schema_node @schema = schema @arg = schema.arg @xpath = Rubyang::Xpath::Parser.parse @arg @logger = Logger.new(self.class.name) @logger.debug { @xpath } @schema_node.evaluate_xpath @xpath end |
Instance Attribute Details
#arg ⇒ Object (readonly)
Returns the value of attribute arg.
31 32 33 |
# File 'lib/rubyang/database/schema_tree.rb', line 31 def arg @arg end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
31 32 33 |
# File 'lib/rubyang/database/schema_tree.rb', line 31 def xpath @xpath end |