From 1ee8af80401171c973f42ba89062ea99347a9deb Mon Sep 17 00:00:00 2001 From: Rob Gleeson Date: Fri, 6 May 2011 18:30:37 +0100 Subject: [PATCH] Pry::Helpers::Color => Pry::Helpers::Text. --- lib/pry/command_context.rb | 2 +- lib/pry/helpers.rb | 2 +- lib/pry/helpers/{color.rb => text.rb} | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename lib/pry/helpers/{color.rb => text.rb} (88%) diff --git a/lib/pry/command_context.rb b/lib/pry/command_context.rb index f065fa2c..d671e257 100644 --- a/lib/pry/command_context.rb +++ b/lib/pry/command_context.rb @@ -25,7 +25,7 @@ class Pry def text @text ||= Class.new do - extend Pry::Helpers::Color + extend Pry::Helpers::Text end end diff --git a/lib/pry/helpers.rb b/lib/pry/helpers.rb index bfd8b131..70717ec5 100644 --- a/lib/pry/helpers.rb +++ b/lib/pry/helpers.rb @@ -1,3 +1,3 @@ require "pry/helpers/base_helpers" require "pry/helpers/command_helpers" -require "pry/helpers/color" +require "pry/helpers/text" diff --git a/lib/pry/helpers/color.rb b/lib/pry/helpers/text.rb similarity index 88% rename from lib/pry/helpers/color.rb rename to lib/pry/helpers/text.rb index b4980c0b..e00ff832 100644 --- a/lib/pry/helpers/color.rb +++ b/lib/pry/helpers/text.rb @@ -1,8 +1,9 @@ class Pry module Helpers - # The methods defined on {Color} are available to custom commands. - module Color + # The methods defined on {Text} are available to custom commands. + # See {Pry::CommandContext#text}, which returns an object that responds to all methods defined here. + module Text extend self