Sha256: b26c5c84d7a0efab0ec1920f08dc0e12a6ac4a7fc278bf4791e2dbc5049eb8d1

Contents?: true

Size: 419 Bytes

Versions: 12

Compression:

Stored size: 419 Bytes

Contents

module Rascal
  module IOHelper
    class << self
      attr_accessor :stdout, :stdin, :stderr

      def setup
        @stdout = $stdout
        @stderr = $stderr
        @stdin = $stdin
      end
    end
    setup

    def say(message)
      stdout.puts(message)
    end

    def stdout
      IOHelper.stdout
    end

    def stderr
      IOHelper.stderr
    end

    def stdin
      IOHelper.stdin
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rascal-0.3.8 lib/rascal/io_helper.rb
rascal-0.3.7 lib/rascal/io_helper.rb
rascal-0.3.6 lib/rascal/io_helper.rb
rascal-0.3.5 lib/rascal/io_helper.rb
rascal-0.3.4 lib/rascal/io_helper.rb
rascal-0.3.3 lib/rascal/io_helper.rb
rascal-0.3.2 lib/rascal/io_helper.rb
rascal-0.3.1 lib/rascal/io_helper.rb
rascal-0.3.0 lib/rascal/io_helper.rb
rascal-0.2.1 lib/rascal/io_helper.rb
rascal-0.2.0 lib/rascal/io_helper.rb
rascal-0.1.0 lib/rascal/io_helper.rb