active_presenters 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|