PHP 8.2.31
Preview: math-mode.rb Size: 562 B
//proc/thread-self/root/opt/alt/ruby19/lib64/ruby/1.9.1/irb/ext/math-mode.rb

#
#   math-mode.rb -
#   	$Release Version: 0.9.6$
#   	$Revision: 25189 $
#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#
require "mathn"

module IRB
  class Context
    attr_reader :math_mode
    alias math? math_mode

    def math_mode=(opt)
      if @math_mode == true && opt == false
	IRB.fail CantReturnToNormalMode
	return
      end

      @math_mode = opt
      if math_mode
	main.extend Math
	print "start math mode\n" if verbose?
      end
    end

    def inspect?
      @inspect_mode.nil? && !@math_mode or @inspect_mode
    end
  end
end

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
1.07 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
2.05 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
2.18 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
562 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download
4.73 KB lrw-r--r-- 2010-11-08 20:59:01
Edit Download
2.13 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
1.10 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
1.27 KB lrw-r--r-- 2009-10-02 12:04:37
Edit Download
915 B lrw-r--r-- 2009-10-02 12:04:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).