Sha256: 2ecac429b6e6e8a5736b446a1bc24dc809c111c0f2927987814fd0c4914c95fa

Contents?: true

Size: 501 Bytes

Versions: 31

Compression:

Stored size: 501 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

31 entries across 31 versions & 1 rubygems

Version Path
rabbit-2.1.3 lib/rabbit/source/argf.rb
rabbit-2.1.2 lib/rabbit/source/argf.rb
rabbit-2.1.1 lib/rabbit/source/argf.rb
rabbit-2.1.0 lib/rabbit/source/argf.rb
rabbit-2.0.9 lib/rabbit/source/argf.rb
rabbit-2.0.8 lib/rabbit/source/argf.rb
rabbit-2.0.7 lib/rabbit/source/argf.rb
rabbit-2.0.6 lib/rabbit/source/argf.rb
rabbit-2.0.5 lib/rabbit/source/argf.rb
rabbit-2.0.4 lib/rabbit/source/argf.rb
rabbit-2.0.3 lib/rabbit/source/argf.rb
rabbit-2.0.2 lib/rabbit/source/argf.rb
rabbit-2.0.1 lib/rabbit/source/argf.rb
rabbit-2.0.0 lib/rabbit/source/argf.rb
rabbit-1.0.9 lib/rabbit/source/argf.rb
rabbit-1.0.8 lib/rabbit/source/argf.rb
rabbit-1.0.7 lib/rabbit/source/argf.rb
rabbit-1.0.6 lib/rabbit/source/argf.rb
rabbit-1.0.5 lib/rabbit/source/argf.rb
rabbit-1.0.4 lib/rabbit/source/argf.rb