summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/drb/drb.rb2
-rw-r--r--lib/yaml/rubytypes.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 2f0f96adc..c056c4116 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -1000,7 +1000,7 @@ module DRb
end
undef :to_s
- undef :to_a if respond_to?(:respond_to)
+ undef :to_a if respond_to?(:to_a)
undef :respond_to?
# Routes method calls to the referenced object.
diff --git a/lib/yaml/rubytypes.rb b/lib/yaml/rubytypes.rb
index ac772bc07..3fc243710 100644
--- a/lib/yaml/rubytypes.rb
+++ b/lib/yaml/rubytypes.rb
@@ -353,7 +353,7 @@ class Range
def to_yaml( opts = {} )
YAML::quick_emit( nil, opts ) { |out|
out << "!ruby/range "
- self.to_s.to_yaml( :Emitter => out )
+ self.to_s.to_yaml(:Emitter => out)
}
end
end