lib/react/object.rb in hyper-react-1.0.0.lap23 vs lib/react/object.rb in hyper-react-1.0.0.lap24
- old
+ new
@@ -10,6 +10,21 @@
_reactrb_tag_original_const_missing(const_name)
rescue StandardError => e
React::Component::Tags.html_tag_class_for(const_name) || raise(e)
end
end
+
+ def to_key
+ object_id
+ end
+end
+class Number
+ def to_key
+ self
+ end
+end
+
+class Boolean
+ def to_key
+ self
+ end
end