summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix/lup_decomposition.rb2
-rw-r--r--lib/shell/filter.rb10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb
index 9c1998fd36..c001770a12 100644
--- a/lib/matrix/lup_decomposition.rb
+++ b/lib/matrix/lup_decomposition.rb
@@ -64,7 +64,7 @@ class Matrix
# Returns +true+ if +U+, and hence +A+, is singular.
- def singular? ()
+ def singular?
@column_count.times do |j|
if (@lu[j][j] == 0)
return true
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb
index c1f4b28a45..2c3ad40a48 100644
--- a/lib/shell/filter.rb
+++ b/lib/shell/filter.rb
@@ -47,7 +47,7 @@ class Shell #:nodoc:
#
# Inputs from +source+, which is either a string of a file name or an IO
# object.
- def < (src)
+ def <(src)
case src
when String
cat = Cat.new(@shell, src)
@@ -65,7 +65,7 @@ class Shell #:nodoc:
#
# Outputs from +source+, which is either a string of a file name or an IO
# object.
- def > (to)
+ def >(to)
case to
when String
dst = @shell.open(to, "w")
@@ -87,7 +87,7 @@ class Shell #:nodoc:
#
# Appends the output to +source+, which is either a string of a file name
# or an IO object.
- def >> (to)
+ def >>(to)
begin
Shell.cd(@shell.pwd).append(to, self)
rescue CantApplyMethod
@@ -99,7 +99,7 @@ class Shell #:nodoc:
# | filter
#
# Processes a pipeline.
- def | (filter)
+ def |(filter)
filter.input = self
if active?
@shell.process_controller.start_job filter
@@ -111,7 +111,7 @@ class Shell #:nodoc:
# filter1 + filter2
#
# Outputs +filter1+, and then +filter2+ using Join.new
- def + (filter)
+ def +(filter)
Join.new(@shell, self, filter)
end