Sha256: 6f4c41c36571a85ec6dc048021c66bbf9c6e48b84cfb09497d2e76d663f4984f

Contents?: true

Size: 700 Bytes

Versions: 14

Compression:

Stored size: 700 Bytes

Contents

# -*- coding: binary -*-
# make sure the classes are defined before opening it to define submodule
require 'rex/ui/text/output'
require 'rex/ui/text/output/buffer'

module Rex
  module Ui
    module Text
      class Output
        class Buffer
          # Adds {#write} method to {Rex::Ui::Text::Output::Buffer} so it can
          # function as a stand-in for `$stdout`
          module Stdout
            # Prints raw message.
            #
            # @param (see Rex::Ui::Text::Output::Buffer#write)
            # @return (see Rex::Ui::Text::Output::Buffer#write)
            def write(msg = '')
              print_raw(msg)
            end
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.12 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.11 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.10 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.9 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.8 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.7 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.5 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.4 lib/rex/ui/text/output/buffer/stdout.rb
dstruct-0.0.1 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.3 lib/rex/ui/text/output/buffer/stdout.rb
librex-0.0.999 lib/rex/ui/text/output/buffer/stdout.rb
rex-2.0.2 lib/rex/ui/text/output/buffer/stdout.rb
librex-0.0.71 lib/rex/ui/text/output/buffer/stdout.rb