Class: Rubyang::Model::Unknown

Inherits:
ArgStmt show all
Defined in:
lib/rubyang/model.rb

Instance Method Summary collapse

Methods inherited from ArgStmt

#arg, #arg_regexp, #to_s, #valid_arg?

Methods inherited from BaseStmt

#has_substmt?, #not_schema_node_substmts, #schema_node_substmts, #substmt, #substmts, #to_s, #to_yang, #without_not_schema_node_substmts

Constructor Details

#initialize(name, arg = '', substmts = []) ⇒ Unknown

Returns a new instance of Unknown.



1029
1030
1031
1032
# File 'lib/rubyang/model.rb', line 1029

def initialize name, arg='', substmts=[]
  super arg, substmts
  @name = name
end

Instance Method Details

#nameObject



1033
1034
1035
# File 'lib/rubyang/model.rb', line 1033

def name
  @name
end

#substatementsObject



1024
1025
1026
1027
1028
# File 'lib/rubyang/model.rb', line 1024

def substatements
  {
    :'unknown' => 0..Float::INFINITY,
  }
end