moved the definition of void to command_context from command_processor

This commit is contained in:
John Mair 2011-09-06 23:53:46 +12:00
parent e012c98886
commit e1de71e084
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,6 @@ class Pry
attr_accessor :opts
attr_accessor :command_set
attr_accessor :command_processor
attr_accessor :void
attr_accessor :_pry_
# Run a command from another command.
@ -42,6 +41,10 @@ class Pry
Pry::Helpers::Text
end
def void
VOID_VALUE
end
include Pry::Helpers::BaseHelpers
include Pry::Helpers::CommandHelpers
end

View File

@ -159,7 +159,6 @@ class Pry
context.eval_string = options[:eval_string]
context.arg_string = options[:arg_string]
context.command_set = commands
context.void = Pry::CommandContext::VOID_VALUE
context._pry_ = @pry_instance
context.command_processor = self