Posted By: Sylvain Joyeux
Date: 2006-11-23 21:30
Summary: utilrb 0.2
Project: Utilrb
utilrb version 0.2 has been released!
== What is Utilrb ?
Utilrb is yet another Ruby toolkit, in the spirit of facets. It includes all
the standard class extensions I use in my own projects like Genom.rb.
== Utilrb's C extension
Utilrb includes a C extension in ext/. It is optional, but some of the
functionalities will be disabled if it is not present. Trying to require
a file in which there is a C-only feature will yield a warning on STDOUT.
* some features have a Ruby version, but a C version is provided for
performance:
- Enumerable#each_uniq
* some features are C-only
- ValueSet class
- Kernel#swap!
Changes:
=== Version 0.2.1
* new features:
- Kernel#is_singleton?
- Module#inherited_enumerable (class_inherited_enumerable on steroids)
- Module#attribute() can be used in singleton classes (previously we had to
call class_attribute() in the class itself)
- UnboundMethod#call(obj, *args, &block) calls the method on obj with
the provided arguments (does m.bind(obj).call(*args, &block))
* changes:
- changed semantics of Module::include for inclusion of modules in modules:
the source_module::ClassExtension gets included in
target_module::ClassExtension. Previously, it was extending the target's
singleton class. This way, Module really acts as a mixin for both class
methods and instance methods |
|