active_presenters 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/proxy.rb +9 -5
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -2
data/lib/proxy.rb
CHANGED
@@ -25,7 +25,6 @@ module ActivePresenter
|
|
25
25
|
if !options.nil? && options.is_a?(Hash)
|
26
26
|
options.each_pair {|k,v| self.send("#{k}=", v)}
|
27
27
|
end
|
28
|
-
@is_a_list = [ActivePresenter::Proxy]
|
29
28
|
self.add_is_a(is_a_list)
|
30
29
|
end
|
31
30
|
|
@@ -42,9 +41,9 @@ module ActivePresenter
|
|
42
41
|
end
|
43
42
|
|
44
43
|
def add_is_a(x)
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
is_a_list << x
|
45
|
+
is_a_list.flatten!
|
46
|
+
is_a_list.uniq!
|
48
47
|
end
|
49
48
|
|
50
49
|
def method_missing(sym, *args)
|
@@ -61,6 +60,11 @@ module ActivePresenter
|
|
61
60
|
|
62
61
|
end
|
63
62
|
|
63
|
+
protected
|
64
|
+
def is_a_list
|
65
|
+
(@is_a_list ||= [ActivePresenter::Proxy])
|
66
|
+
end
|
67
|
+
|
64
68
|
private
|
65
69
|
def gen_methods(key)
|
66
70
|
eval %{
|
@@ -82,7 +86,7 @@ module ActivePresenter
|
|
82
86
|
end
|
83
87
|
|
84
88
|
def test_is_a?(x)
|
85
|
-
return
|
89
|
+
return is_a_list.include?(x)
|
86
90
|
end
|
87
91
|
end # ProxyMethods
|
88
92
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: active_presenters
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date:
|
6
|
+
version: 1.1.7
|
7
|
+
date: 2008-01-08 00:00:00 -05:00
|
8
8
|
summary: active_presenters
|
9
9
|
require_paths:
|
10
10
|
- lib
|