Sha256: b5a2c3c943621510b85e462aae06f3b058e4432df97e054bf3261ac7861ce174

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

use ruru::{AnyObject, Class, Object, RString};

pub fn str_to_any_obj(str_var: &str) -> AnyObject {
  RString::new(str_var).to_any_object()
}

pub fn class_new(klass: &str, params: Vec<AnyObject>) -> AnyObject {
  Class::from_existing(klass).new_instance(params)
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faster_path-0.2.3 src/helpers.rs