Class: EtcHosts
- Inherits:
-
Object
- Object
- EtcHosts
- Defined in:
- lib/AIX/EtcHosts.rb
Instance Attribute Summary collapse
-
#DataString ⇒ Object
attr_reader :name, :physloc.
-
#ip_size_max ⇒ Object
max size of IP address, it is for bettter print table in file.
Instance Method Summary collapse
- #check(hostLine) ⇒ Object
-
#initialize(string = '') ⇒ EtcHosts
constructor
A new instance of EtcHosts.
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
#DataString ⇒ Object
attr_reader :name, :physloc
14 15 16 |
# File 'lib/AIX/EtcHosts.rb', line 14 def DataString @DataString end |
#ip_size_max ⇒ Object
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 |