lib/rdf/query/solution.rb in rdf-3.0.3 vs lib/rdf/query/solution.rb in rdf-3.0.4
- old
+ new
@@ -22,10 +22,10 @@
#
class Solution
# Undefine all superfluous instance methods:
undef_method(*instance_methods.
map(&:to_s).
- select {|m| m =~ /^\w+$/}.
+ select {|m| m.match?(/^\w+$/)}.
reject {|m| %w(object_id dup instance_eval inspect to_s private_methods class should should_not pretty_print).include?(m) || m[0,2] == '__'}.
map(&:to_sym))
include Enumerable