summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 10:47:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 10:47:43 +0000
commit65e27c8b138d6959608658ffce2fa761842b8d24 (patch)
treecf3172b4d047af3e96f450b04f406f3c9ded91f2 /ext
parentdacf977a42b7268cc752fe0b3b521d39ab7b05e9 (diff)
parse.y: ambiguous parentheses
* parse.y (parser_yylex): warn ambiguous parentheses after a space in method definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/date/lib/date.rb14
-rw-r--r--ext/openssl/lib/openssl/buffering.rb2
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb
index 48ce6316bd..c10441e573 100644
--- a/ext/date/lib/date.rb
+++ b/ext/date/lib/date.rb
@@ -15,17 +15,17 @@ class Date
protected :d
- def zero? () false end
- def finite? () false end
- def infinite? () d.nonzero? end
- def nan? () d.zero? end
+ def zero?() false end
+ def finite?() false end
+ def infinite?() d.nonzero? end
+ def nan?() d.zero? end
def abs() self.class.new end
- def -@ () self.class.new(-d) end
- def +@ () self.class.new(+d) end
+ def -@() self.class.new(-d) end
+ def +@() self.class.new(+d) end
- def <=> (other)
+ def <=>(other)
case other
when Infinity; return d <=> other.d
when Numeric; return d
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb
index 61e1f43e00..94aba3520b 100644
--- a/ext/openssl/lib/openssl/buffering.rb
+++ b/ext/openssl/lib/openssl/buffering.rb
@@ -381,7 +381,7 @@ module OpenSSL::Buffering
# Writes +s+ to the stream. +s+ will be converted to a String using
# String#to_s.
- def << (s)
+ def <<(s)
do_write(s)
self
end