lib/firebase/firebase.rb in motion-firebase-2.0.0 vs lib/firebase/firebase.rb in motion-firebase-2.0.1
- old
+ new
@@ -77,10 +77,14 @@
else
childByAppendingPath(names.join('/'))
end
end
+ def child(name)
+ childByAppendingPath(name)
+ end
+
def []=(key, value)
childByAppendingPath(key).set(value)
end
def clear!(&and_then)
@@ -182,9 +186,13 @@
onDisconnectSetValue(value, andPriority:priority, withCompletionBlock:and_then)
else
onDisconnectSetValue(value, andPriority:priority)
end
return self
+ end
+
+ def to_s
+ description
end
def inspect
"#<#{self.class}:0x#{self.object_id.to_s(16)}>"
end