mirror of
https://github.com/Evolix/chexpire.git
synced 2024-06-04 08:35:06 +02:00
31 lines
430 B
Ruby
31 lines
430 B
Ruby
|
module Whois
|
||
|
module Parser
|
||
|
module Entry
|
||
|
class Base
|
||
|
attr_reader :index
|
||
|
|
||
|
def initialize(index)
|
||
|
@index = index
|
||
|
@comment = false
|
||
|
end
|
||
|
|
||
|
def comment!
|
||
|
@comment = true
|
||
|
end
|
||
|
|
||
|
def comment?
|
||
|
@comment == true
|
||
|
end
|
||
|
|
||
|
def blank?
|
||
|
false
|
||
|
end
|
||
|
|
||
|
def field?
|
||
|
false
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|