Remove useless self from to_hayes methods

develop
Guillaume DOTT 2013-09-06 10:39:40 +02:00
parent be87792382
commit 1446be3c14
1 changed files with 3 additions and 3 deletions

View File

@ -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