helix/examples/unit/src/lib.rs

15 lines
243 B
Rust

#[macro_use]
extern crate helix;
ruby! {
class Attributes {
#[doc(hidden)]
#[ruby_name="foo"]
#[inline]
#[cfg(not(foo="bar"))]
def bar() {
println!("Hello from bar!");
}
}
}