1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

removed input.rb and output.rb

This commit is contained in:
John Mair 2011-01-19 21:50:45 +13:00
parent cb9df87779
commit 9e1e35e5f4
6 changed files with 12 additions and 32 deletions

View file

@ -566,4 +566,4 @@ Problems or questions contact me at [github](http://github.com/banister)
]

View file

@ -6,8 +6,6 @@ direc = File.dirname(__FILE__)
require "method_source"
require "readline"
require "#{direc}/pry/version"
require "#{direc}/pry/input"
require "#{direc}/pry/output"
require "#{direc}/pry/hooks"
require "#{direc}/pry/print"
require "#{direc}/pry/command_base"

View file

@ -1,20 +0,0 @@
require 'readline'
class Pry
# preset input class
class PresetInput
def initialize(*actions)
@orig_actions = actions.dup
@actions = actions
end
def readline(*)
@actions.shift
end
def rewind
@actions = @orig_actions.dup
end
end
end

View file

@ -1,7 +0,0 @@
class Pry
# null output class - doesn't write anywwhere.
class NullOutput
def self.puts(*) end
end
end

View file

@ -10,8 +10,8 @@ class Pry
# Create a new `Pry` object.
# @param [Hash] options The optional configuration parameters.
# @option options [#readline] :input The object to use for input. (see input.rb)
# @option options [#puts] :output The object to use for output. (see output.rb)
# @option options [#readline] :input The object to use for input.
# @option options [#puts] :output The object to use for output.
# @option options [Pry::CommandBase] :commands The object to use for
# commands. (see commands.rb)
# @option options [Hash] :hooks The defined hook Procs (see hooks.rb)

View file

@ -17,6 +17,15 @@ class InputTester
end
end
class Pry
# null output class - doesn't write anywwhere.
class NullOutput
def self.puts(*) end
end
end
class CommandTester < Pry::CommandBase
command "command1", "command 1 test" do