From 1446be3c14989024d6657d486237e4156ea6d1ed Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Fri, 6 Sep 2013 10:39:40 +0200 Subject: [PATCH] Remove useless self from to_hayes methods --- lib/biju/to_hayes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/biju/to_hayes.rb b/lib/biju/to_hayes.rb index 28bc8aa..6683632 100644 --- a/lib/biju/to_hayes.rb +++ b/lib/biju/to_hayes.rb @@ -1,9 +1,9 @@ class Object - def to_hayes; "\"#{self.to_s}\""; end + def to_hayes; "\"#{to_s}\""; end end class Fixnum - def to_hayes; self.to_s; end + def to_hayes; to_s; end end class TrueClass @@ -15,5 +15,5 @@ class FalseClass end class Array - def to_hayes; self.map(&:to_hayes).join(','); end + def to_hayes; map(&:to_hayes).join(','); end end