Class: EtcHosts

Inherits:
Object
  • Object
show all
Defined in:
lib/AIX/EtcHosts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string = '') ⇒ EtcHosts

Returns a new instance of EtcHosts.



17
18
19
20
21
# File 'lib/AIX/EtcHosts.rb', line 17

def initialize string=''

  @DataString = string
  
end

Instance Attribute Details

#DataStringObject

attr_reader :name, :physloc



14
15
16
# File 'lib/AIX/EtcHosts.rb', line 14

def DataString
  @DataString
end

#ip_size_maxObject

max size of IP address, it is for bettter print table in file



15
16
17
# File 'lib/AIX/EtcHosts.rb', line 15

def ip_size_max
  @ip_size_max
end

Instance Method Details

#check(hostLine) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/AIX/EtcHosts.rb', line 23

def check hostLine

  #build tables of entries

  #check also duplicates!


  return false
end