| Class | Weave::Symbol |
| In: |
lib/weave.rb
ext/weave/weave.c |
| Parent: | Object |
please no
| RB_ARY_SORT | = | UINT2NUM((unsigned int)rb_ary_sort) |
| sym | [RW] |
Create a new symbol. If the memory address of the symbol is known, the Symbol can be created like so:
s = Symbol.new addr
Since it‘s rather unlikly for you to know random memory addresses, the more reasonable usage is:
s = Symbol.new library, symbol_name
where `library` is a `Weave::Library` and `symbol_name` is, well, the name of the symbol to load from the library.