Skip to content

Commit

Permalink
Implement customt traits for most Ruby native types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Apr 29, 2021
1 parent 3c1db04 commit 9017c22
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/rutie-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod wrapper;
mod upcast;

pub use rutie_derive_macros::{rubyclass, rubymethods};
pub use wrapper::*;
pub use upcast::*;
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,15 @@ macro_rules! id_impl {
}
}

id_impl!(rutie::AnyObject, rutie::RString);
id_impl!(
rutie::AnyObject,
rutie::RString,
rutie::Array,
rutie::Boolean,
rutie::Fixnum,
rutie::Float,
rutie::Hash,
rutie::Integer,
rutie::NilClass,
rutie::Symbol,
);

0 comments on commit 9017c22

Please sign in to comment.