Class: Rubyang::Database::SchemaTree::List
- Inherits:
-
InteriorSchemaNode
- Object
- SchemaNode
- InteriorSchemaNode
- Rubyang::Database::SchemaTree::List
- Defined in:
- lib/rubyang/database/schema_tree.rb
Instance Attribute Summary collapse
-
#max_elements ⇒ Object
readonly
min-elements start max-elements start.
-
#min_elements ⇒ Object
readonly
min-elements start max-elements start.
Attributes inherited from InteriorSchemaNode
#arg, #children, #parent, #yang, #yangs
Attributes inherited from SchemaNode
#arg, #module, #parent, #yang, #yangs
Instance Method Summary collapse
-
#initialize(*args) ⇒ List
constructor
A new instance of List.
-
#keys ⇒ Object
end end.
Methods inherited from InteriorSchemaNode
Methods inherited from SchemaNode
#evaluate_xpath, #evaluate_xpath_axis, #evaluate_xpath_expr, #evaluate_xpath_node_test, #evaluate_xpath_path, #evaluate_xpath_predicates, #load_yang, #model, #namespace, #prefix, #root, #to_json, #to_s
Constructor Details
#initialize(*args) ⇒ List
Returns a new instance of List.
1157 1158 1159 1160 1161 |
# File 'lib/rubyang/database/schema_tree.rb', line 1157 def initialize *args super @min_elements = [] @max_elements = [] end |
Instance Attribute Details
#max_elements ⇒ Object (readonly)
min-elements start max-elements start
1156 1157 1158 |
# File 'lib/rubyang/database/schema_tree.rb', line 1156 def max_elements @max_elements end |
#min_elements ⇒ Object (readonly)
min-elements start max-elements start
1156 1157 1158 |
# File 'lib/rubyang/database/schema_tree.rb', line 1156 def min_elements @min_elements end |
Instance Method Details
#keys ⇒ Object
end end
1165 1166 1167 |
# File 'lib/rubyang/database/schema_tree.rb', line 1165 def keys @yang.substmt( 'key' )[0].arg.split( /[ \t]+/ ) end |