Sha256: 76acf2730da38bb4fb922248334fc3d8a45eef88569e94e37ca5f13fff34308a

Contents?: true

Size: 362 Bytes

Versions: 8

Compression:

Stored size: 362 Bytes

Contents

require 'whois'


module Whois
  class ParserExtensions

    module WhoisParser

      # Lazy-loads and returns the parser proxy for current record.
      #
      # @return [Whois::Record::Parser]
      def parser
        @parser ||= Parser.new(self)
      end

    end

  end
end


Whois::Record.class_eval do
  include Whois::ParserExtensions::WhoisParser
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
whois-parser-2.0.0 lib/whois/parser_extensions/whois_parser.rb
whois-parser-1.2.0 lib/whois/parser_extensions/whois_parser.rb
whois-parser-1.1.0 lib/whois/parser_extensions/whois_parser.rb
whois-parser-1.0.1 lib/whois/parser_extensions/whois_parser.rb
hetzner-whois-parser-1.0.1.rc2 lib/whois/parser_extensions/whois_parser.rb
hetzner-whois-parser-1.0.1.rc1 lib/whois/parser_extensions/whois_parser.rb
whois-parser-1.0.0 lib/whois/parser_extensions/whois_parser.rb
whois-parser-1.0.0.pre.beta2 lib/whois/parser_extensions/whois_parser.rb