lib/delegate.rb in delegate-0.3.1 vs lib/delegate.rb in delegate-0.4.0
- old
+ new
@@ -37,11 +37,11 @@
# == Notes
#
# Be advised, RDoc will not detect delegated methods.
#
class Delegator < BasicObject
- VERSION = "0.3.1"
+ VERSION = "0.4.0"
kernel = ::Kernel.dup
kernel.class_eval do
alias __raise__ raise
[:to_s, :inspect, :!~, :===, :<=>, :hash].each do |m|
@@ -184,18 +184,18 @@
#
# This method must be overridden by subclasses and should return the object
# method calls are being delegated to.
#
def __getobj__
- __raise__ ::NotImplementedError, "need to define `__getobj__'"
+ __raise__ ::NotImplementedError, "need to define '__getobj__'"
end
#
# This method must be overridden by subclasses and change the object delegate
# to _obj_.
#
def __setobj__(obj)
- __raise__ ::NotImplementedError, "need to define `__setobj__'"
+ __raise__ ::NotImplementedError, "need to define '__setobj__'"
end
#
# Serialization support for the object returned by \_\_getobj\_\_.
#