Sha256: 8df5d03f32862a955dde8d961e3961e1fc38e5f70485c8022a9ac51e932eeb31

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require "yaml"

Dir[File.join(File.dirname(__FILE__), "irb_hacks/**/*.rb")].each {|fn| require fn}

module IrbHacks
  # Break execution, return value if invoked from `a`.
  #
  #   IrbHacks.break
  #   IrbHacks.break("hi")
  def self.break(value = nil)
    raise BreakException, [value]
  end

  def self.less_cmd
    @less_cmd
  end

  def self.less_cmd=(cmd)
    @less_cmd = cmd
  end

  class BreakException < Exception; end

  #--------------------------------------- Defaults

  self.less_cmd = "less -R"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
irb_hacks-0.2.0 lib/irb_hacks.rb