Sha256: 36f3870655e3969793e10efc0151779b53eaf0a05c3477249d34ac53086f5d37
Contents?: true
Size: 426 Bytes
Versions: 35
Compression:
Stored size: 426 Bytes
Contents
/// A macro to define a new `Id` const for a given string. #[macro_export] macro_rules! define_rb_intern { ($($name:ident => $id:expr,)*) => { $( lazy_static::lazy_static! { /// Define a Ruby internal `Id`. Equivalent to `rb_intern("$name")` pub static ref $name: $crate::helpers::StaticId = $crate::helpers::StaticId::intern_str($id); } )* }; }
Version data entries
35 entries across 35 versions & 1 rubygems