Class: Rubyang::Database::SchemaTree::Must

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyang/database/schema_tree.rb

Overview

must start

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argObject (readonly)

Returns the value of attribute arg.



31
32
33
# File 'lib/rubyang/database/schema_tree.rb', line 31

def arg
  @arg
end

#xpathObject (readonly)

Returns the value of attribute xpath.



31
32
33
# File 'lib/rubyang/database/schema_tree.rb', line 31

def xpath
  @xpath
end