文件操作 - complex.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/ruby21/lib64/ruby/2.1.0/complex.rb
编辑文件内容
# :enddoc: warn('lib/complex.rb is deprecated') if $VERBOSE require 'cmath' unless defined?(Math.exp!) Object.instance_eval{remove_const :Math} Math = CMath end def Complex.generic? (other) other.kind_of?(Integer) || other.kind_of?(Float) || other.kind_of?(Rational) end class Complex alias image imag end class Numeric def im() Complex(0, self) end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件