simple-decorator 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_decorator.rb +2 -2
- metadata +1 -1
data/lib/simple_decorator.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# Allows you to give true decorator behavior to your classes.
|
5
5
|
class SimpleDecorator < BasicObject
|
6
|
-
|
6
|
+
undef_method :==
|
7
7
|
|
8
8
|
# Stores the decorated object
|
9
9
|
def initialize(component)
|
@@ -14,7 +14,7 @@ class SimpleDecorator < BasicObject
|
|
14
14
|
def decorated
|
15
15
|
@component
|
16
16
|
end
|
17
|
-
alias :source :
|
17
|
+
alias :source :decorate
|
18
18
|
|
19
19
|
def send(s, *a); __send__(s, *a) end
|
20
20
|
def method_missing(n, *a, &b); @component.send(n, *a, &b) end
|