Class: TCWrapper::IdRoot

Inherits:
Id
  • Object
show all
Defined in:
lib/distem/wrapper/tc/idroot.rb

Instance Attribute Summary

Attributes inherited from Id

#major, #minor

Instance Method Summary (collapse)

Methods inherited from Id

get_unique_major_id, #next_minor_id

Constructor Details

- (IdRoot) initialize

Returns a new instance of IdRoot



6
7
8
# File 'lib/distem/wrapper/tc/idroot.rb', line 6

def initialize
  super(1,0)
end

Instance Method Details

- (Object) get_unique_major_id(iface)



10
11
12
# File 'lib/distem/wrapper/tc/idroot.rb', line 10

def get_unique_major_id(iface)
  "1"
end

- (Object) to_s



14
15
16
# File 'lib/distem/wrapper/tc/idroot.rb', line 14

def to_s
  "root"
end