Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

call extension methods directly on instance

  • Loading branch information...
commit f5794c01982df8377c3179b8ac4e59e72884b90e 1 parent 9df9286
@dewski dewski authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/json_builder/extensions.rb
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.