Skip to content
Browse files

Add Hash conversion

  • Loading branch information...
1 parent 5d038d6 commit cd937bedfb5e51689420212cdf5c73f0ff93a7eb Matthew King committed Apr 11, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 rice/Hash.hpp
View
14 rice/Hash.hpp
@@ -204,6 +204,20 @@ class Hash::Iterator
} // namespace Rice
+template<>
+inline
+Rice::Hash from_ruby<Rice::Hash>(Rice::Object x)
+{
+ return Rice::Hash(x);
+}
+
+template<>
+inline
+Rice::Object to_ruby<Rice::Hash>(Rice::Hash const & x)
+{
+ return x;
+}
+
#include "Hash.ipp"
#endif // Rice__Hash__hpp_

0 comments on commit cd937be

Please sign in to comment.
Something went wrong with that request. Please try again.