lib/irb_hacks.rb in irb_hacks-0.2.2 vs lib/irb_hacks.rb in irb_hacks-0.2.3

- old
+ new

@@ -3,21 +3,21 @@ # Yet another set of IRB hacks. # # Summary of features brought to IRB: # # * <tt>a</tt> and <tt>ae</tt> methods to invoke or edit code snippets. -# * <tt>less</tt> method to interactively dump data with OS pages like <tt>less</tt>. +# * <tt>less</tt> method to interactively dump data with OS pager program (e.g. <tt>less</tt>). # * IrbHacks::break to instantly return value from code into IRB. module IrbHacks #:doc: - # Break execution, instantly return value if caller is invoked from a snippet. + # Break execution, instantly return a value if caller is invoked from a snippet. # # def myfunc # puts "Reading name..." # name = File.read(...) - # IrbHacks.break name #DEBUG: See what's been read. + # IrbHacks.break name # Pass what's been read back to console. # - # # Other code... + # ... # end # # irb> ae # snippet>> myfunc # irb> a @@ -32,20 +32,6 @@ # IrbHacks.conf # IrbHacks.conf.snippet_history_size = 200 def self.conf @conf ||= Config.new end -end - -#--------------------------------------- Junk - -if false - def self.less_cmd #:nodoc: - @less_cmd - end - - def self.less_cmd=(cmd) #:nodoc: - @less_cmd = cmd - end - - self.less_cmd = "less -R" end