Sha256: 66d7f45c74b37a2677bfc61e1bbbe89195b9d6f4927b4843700fa46b226909f1

Contents?: true

Size: 687 Bytes

Versions: 1

Compression:

Stored size: 687 Bytes

Contents

use magnus::{class, memoize, Module, RClass, RModule};

pub(crate) fn polars() -> RModule {
    *memoize!(RModule: class::object().const_get("Polars").unwrap())
}

pub(crate) fn series() -> RClass {
    *memoize!(RClass: polars().const_get("Series").unwrap())
}

pub(crate) fn utils() -> RModule {
    *memoize!(RModule: polars().const_get("Utils").unwrap())
}

pub(crate) fn bigdecimal() -> RClass {
    *memoize!(RClass: class::object().const_get("BigDecimal").unwrap())
}

pub(crate) fn date() -> RClass {
    *memoize!(RClass: class::object().const_get("Date").unwrap())
}

pub(crate) fn datetime() -> RClass {
    *memoize!(RClass: class::object().const_get("DateTime").unwrap())
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polars-df-0.6.0 ext/polars/src/rb_modules.rs