summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
-rw-r--r--lib/forwardable.rb6
-rw-r--r--lib/matrix.rb5
-rw-r--r--lib/mkmf.rb3
3 files changed, 4 insertions, 10 deletions
@@ -246,7 +246,7 @@ module SingleForwardable
# provided, it is used as the name for the delegate method.
#
def def_single_delegator(accessor, method, ali = method)
- line_no = __LINE__; str = %{
def #{ali}(*args, &block)
begin
#{accessor}.__send__(:#{method}, *args, &block)
@@ -264,7 +264,3 @@ module SingleForwardable
alias def_delegators def_single_delegators
alias def_delegator def_single_delegator
end
-
-
-
-
@@ -834,7 +834,6 @@ class Matrix
a = to_a
last_column = column_size - 1
last_row = row_size - 1
- rank = 0
pivot_row = 0
previous_pivot = 1
0.upto(last_column) do |k|
@@ -1237,7 +1236,7 @@ class Vector
# Vector[7, 4, ...]
#
def Vector.[](*array)
- new convert_to_array(array, copy = false)
end
#
@@ -1532,6 +1531,6 @@ class Vector
# Overrides Object#inspect
#
def inspect
- str = "Vector"[email protected]
end
end
@@ -153,8 +153,7 @@ def map_dir(dir, map = nil)
map.inject(dir) {|d, (orig, new)| d.gsub(orig, new)}
end
-topdir = File.dirname(libdir = File.dirname(__FILE__))
-extdir = File.expand_path("ext", topdir)
path = File.expand_path($0)
$extmk = path[0, topdir.size+1] == topdir+"/"
$extmk &&= %r"\A(?:ext|enc|tool|test(?:/.+))\z" =~ File.dirname(path[topdir.size+1..-1])