Permalink
Browse files

call extension methods directly on instance

  • Loading branch information...
dewski committed Feb 10, 2012
1 parent 9df9286 commit f5794c01982df8377c3179b8ac4e59e72884b90e
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/json_builder/extensions.rb
@@ -2,25 +2,25 @@
class FalseClass
def to_builder
- self.inspect
+ inspect
end
end
class TrueClass
def to_builder
- self.inspect
+ inspect
end
end
class String
def to_builder
- self.inspect
+ inspect
end
end
class Hash
def to_builder
- self.to_json
+ to_json
end
end
@@ -51,7 +51,7 @@ def to_builder
module BSON
class ObjectId
def to_builder
- self.to_s.inspect
+ to_s.inspect
end
end
end

0 comments on commit f5794c0

Please sign in to comment.