Sha256: 34cd70b67381f6298a52697f672274e98d958c2f90e7d979c449ba15cfa14a6a

Contents?: true

Size: 477 Bytes

Versions: 12

Compression:

Stored size: 477 Bytes

Contents

require "rabbit/source/base"

module Rabbit
  module Source
    class ARGF

      include Base

      def self.initial_args_description
        N_("none (get from STDIN) or [FILE_NAMES]")
      end

      def initialize(encoding, logger, argf)
        super(encoding, logger)
        @argf = argf
      end

      private
      def _read
        begin
          @argf.read
        rescue
          @logger.error($!.message)
          ""
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rabbit-3.0.3 lib/rabbit/source/argf.rb
rabbit-3.0.2 lib/rabbit/source/argf.rb
rabbit-3.0.1 lib/rabbit/source/argf.rb
rabbit-3.0.0 lib/rabbit/source/argf.rb
rabbit-2.2.1 lib/rabbit/source/argf.rb
rabbit-2.2.0 lib/rabbit/source/argf.rb
rabbit-2.1.9 lib/rabbit/source/argf.rb
rabbit-2.1.8 lib/rabbit/source/argf.rb
rabbit-2.1.7 lib/rabbit/source/argf.rb
rabbit-2.1.6 lib/rabbit/source/argf.rb
rabbit-2.1.5 lib/rabbit/source/argf.rb
rabbit-2.1.4 lib/rabbit/source/argf.rb