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.
@@ -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
- @is_a_list << x
46
- @is_a_list.flatten!
47
- @is_a_list.uniq!
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 @is_a_list.include?(x)
89
+ return is_a_list.include?(x)
86
90
  end
87
91
  end # ProxyMethods
88
92
 
@@ -2,4 +2,4 @@
2
2
  gem_name: active_presenters
3
3
  package: active_presenters
4
4
  project: magrathea
5
- version: 1.1.6
5
+ version: 1.1.7
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.6
7
- date: 2007-12-03 00:00:00 -05:00
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