mirror of
https://github.com/Evolix/chexpire.git
synced 2024-07-01 05:22:53 +02:00
38 lines
613 B
Ruby
38 lines
613 B
Ruby
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
|
|
|
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
|
|
|
|
def text?
|
|
false
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|