1 #ifndef Rice__Identifier__hpp_
2 #define Rice__Identifier__hpp_
4 #include "detail/ruby.hpp"
31 std::string
str()
const;
34 ID
id()
const {
return id_; }
37 operator ID()
const {
return id_; }
48 #include "Identifier.ipp"
A wrapper for the ID type.
Definition: Identifier.hpp:16
VALUE to_sym() const
Return the ID as a Symbol.
Identifier(ID id)
Construct a new Identifier from an ID.
Identifier(Symbol const &symbol)
Construct a new Identifier from a Symbol.
ID id() const
Return the underlying ID.
Definition: Identifier.hpp:34
Identifier(char const *s="")
Construct a new Identifier from a string.
char const * c_str() const
Return a string representation of the Identifier.
std::string str() const
Return a string representation of the Identifier.
A wrapper for ruby's Symbol class.
Definition: Symbol.hpp:20