Skip to content

Commit

Permalink
Add Hash conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew King committed Apr 11, 2012
1 parent 5d038d6 commit cd937be
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rice/Hash.hpp
Expand Up @@ -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_
Expand Down

0 comments on commit cd937be

Please sign in to comment.