Class: Rubyang::Database::SchemaTree::List

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

Instance Attribute Summary collapse

Attributes inherited from InteriorSchemaNode

#arg, #children, #parent, #yang, #yangs

Attributes inherited from SchemaNode

#arg, #module, #parent, #yang, #yangs

Instance Method Summary collapse

Methods inherited from InteriorSchemaNode

#resolve_node, #resolve_uses

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_elementsObject (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_elementsObject (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

#keysObject

end end



1165
1166
1167
# File 'lib/rubyang/database/schema_tree.rb', line 1165

def keys
  @yang.substmt( 'key' )[0].arg.split( /[ \t]+/ )
end