lib/hotcell/extensions.rb in hotcell-0.0.1 vs lib/hotcell/extensions.rb in hotcell-0.1.0
- old
+ new
@@ -34,9 +34,13 @@
include Hotcell::Manipulator::Mixin
end
Hash.class_eval do
include Hotcell::Manipulator::Mixin
+
+ def manipulator_invoke method, *arguments
+ arguments.size == 0 && key?(method) ? self[method] : super
+ end
end