lib/gecoder/interface/enum_matrix.rb in gecoder-0.8.3 vs lib/gecoder/interface/enum_matrix.rb in gecoder-0.9.0
- old
+ new
@@ -1,10 +1,10 @@
require 'matrix'
-module Gecode::Util
+module Gecode::Util #:nodoc:
# Methods that make a matrix an enumerable.
- module MatrixEnumMethods
+ module MatrixEnumMethods #:nodoc:
include Enumerable
# Iterates over every element in the matrix.
def each(&block)
row_size.times do |i|
@@ -14,11 +14,11 @@
end
end
end
# Extends Matrix so that it's an enumerable.
- class EnumMatrix < Matrix
+ class EnumMatrix < Matrix #:nodoc:
include MatrixEnumMethods
def row(i)
wrap_if_wrapped make_vector_enumerable(super)
end
@@ -59,6 +59,6 @@
else
enum
end
end
end
-end
\ No newline at end of file
+end