Sha256: b6fedf5116f70900724d0f86572b6646512b01f3a814b7d79652afe4a3eab174

Contents?: true

Size: 582 Bytes

Versions: 8

Compression:

Stored size: 582 Bytes

Contents

raise LoadError

require 'rabbit/source/base'

module Rabbit
  module Source

    class Hiki

      include Base

      def self.initial_args_description
        N_("[HIKI_CGI_URI] and [PAGE_NAME]")
      end

      def initialize(encoding, cgi_uri, name)
        @cgi_uri = cgi_uri
        @name = name
        @uri = URI.parse("#{@cgi_uri}?c=s;p=#{@name}")
        super(encoding)
      end

      private
      def _read
        @uri.open do |f|
          f.read
        end
      end

      def init_base
        set_base(::File.dirname(@uri.to_s))
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rabbit-2.2.1 lib/rabbit/source/hiki.rb
rabbit-2.2.0 lib/rabbit/source/hiki.rb
rabbit-2.1.9 lib/rabbit/source/hiki.rb
rabbit-2.1.8 lib/rabbit/source/hiki.rb
rabbit-2.1.7 lib/rabbit/source/hiki.rb
rabbit-2.1.6 lib/rabbit/source/hiki.rb
rabbit-2.1.5 lib/rabbit/source/hiki.rb
rabbit-2.1.4 lib/rabbit/source/hiki.rb