pub fn new(string: &str) -> Self {
        let id = symbol::internal_id(string);

        Self::from(symbol::id_to_sym(id))
    }
/// Creates a new instance of Ruby `Symbol`.
///
/// # Examples
///
/// ```
/// use rutie::{Symbol, VM};
/// # VM::init();
///
/// let symbol = Symbol::new("hello");
///
/// assert_eq!(symbol.to_str(), "hello");
/// ```
///
/// Ruby:
///
/// ```ruby
/// sym = :hello
///
/// sym.to_s == 'hello'
/// ```
Creates a new instance of Ruby `Symbol`.
Creates a new instance of Ruby ` Symbol ` .
pub fn new(string: &str) -> Self {
        let id = symbol::internal_id(string);
        Self::from(symbol::id_to_sym(id))
    }
pub fn new ( string : & str ) -> Self { let id = symbol :: internal_id ( string ) ; Self :: from ( symbol :: id_to_sym ( id ) ) }
Creates a new instance of Ruby `Symbol`.
Creates a new instance of Ruby ` Symbol ` .
string
&str
string
&str
examples
None
vm::init();
let symbol = Symbol::new("hello").





```ruby
sym = :hello


let symbol = Symbol :: new ( " hello " ) . ` ` ` ruby sym = : hello