1 #ifndef Rice__Symbol__hpp_
2 #define Rice__Symbol__hpp_
4 #include "Identifier.hpp"
6 #include "detail/ruby.hpp"
41 std::string
str()
const;
A wrapper for the ID type.
Definition: Identifier.hpp:16
The base class for all Objects.
Definition: Object_defn.hpp:25
A wrapper for ruby's Symbol class.
Definition: Symbol.hpp:20
char const * c_str() const
Return a string representation of the Symbol.
Symbol(VALUE v)
Wrap an existing symbol.
std::string str() const
Return a string representation of the Symbol.
Symbol(char const *s="")
Construct a Symbol from a null-terminated C string.
Identifier to_id() const
Return the Symbol as an Identifier.
Symbol(std::string const &s)
Construct a Symbol from an std::string.
Symbol(Identifier id)
Construct a Symbol from an Identifier.
Symbol(Object v)
Wrap an existing symbol.