lolita 3.0.7 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/GUIDELINE +4 -0
- data/README.rdoc +50 -0
- data/VERSION +1 -1
- data/app/controllers/lolita/rest_controller.rb +27 -11
- data/app/helpers/components/lolita/configuration/list_component.rb +11 -0
- data/app/helpers/lolita_helper.rb +1 -1
- data/app/views/components/lolita/configuration/field/_display.html.erb +9 -0
- data/app/views/components/lolita/configuration/field/_label.html.erb +1 -0
- data/app/views/components/lolita/{field → configuration/field}/_object.html.erb +0 -0
- data/app/views/components/lolita/configuration/field/array/_display.html.erb +5 -0
- data/app/views/components/lolita/configuration/field/array/habtm/_display.html.erb +26 -0
- data/app/views/components/lolita/configuration/field/array/select/_display.html.erb +5 -0
- data/app/views/components/lolita/configuration/field/big_decimal/_display.html.erb +1 -0
- data/app/views/components/lolita/{field/_boolean.html.erb → configuration/field/boolean/_display.html.erb} +0 -0
- data/app/views/components/lolita/configuration/field/date/_display.html.erb +1 -0
- data/app/views/components/lolita/{field/_string.html.erb → configuration/field/float/_display.html.erb} +0 -0
- data/app/views/components/lolita/configuration/field/integer/_display.html.erb +1 -0
- data/app/views/components/lolita/configuration/field/string/_display.html.erb +5 -0
- data/app/views/components/lolita/{field/_disabled.html.erb → configuration/field/string/disabled/_display.html.erb} +0 -0
- data/app/views/components/lolita/{field/_password.html.erb → configuration/field/string/password/_display.html.erb} +0 -0
- data/app/views/components/lolita/configuration/field/string/text/_display.html.erb +34 -0
- data/app/views/components/lolita/configuration/field/time/_display.html.erb +1 -0
- data/app/views/components/lolita/{field_set → configuration/field_set}/_display.html.erb +1 -1
- data/app/views/components/lolita/configuration/list/_body.html.erb +5 -0
- data/app/views/components/lolita/{list → configuration/list}/_body_cell.html.erb +0 -0
- data/app/views/components/lolita/{list → configuration/list}/_checkbox_cell.html.erb +0 -0
- data/app/views/components/lolita/{list → configuration/list}/_checkbox_header.html.erb +0 -0
- data/app/views/components/lolita/configuration/list/_display.html.erb +12 -0
- data/app/views/components/lolita/configuration/list/_filter.html.erb +8 -0
- data/app/views/components/lolita/configuration/list/_header.html.erb +9 -0
- data/app/views/components/lolita/{list → configuration/list}/_header_cell.html.erb +0 -0
- data/app/views/components/lolita/{list → configuration/list}/_new_resource.html.erb +0 -0
- data/app/views/components/lolita/configuration/list/_paginator.html.erb +3 -0
- data/app/views/components/lolita/configuration/list/_row.html.erb +7 -0
- data/app/views/components/lolita/{list → configuration/list}/_title.html.erb +0 -0
- data/app/views/components/lolita/{list → configuration/list}/_tool_cell.html.erb +0 -0
- data/app/views/components/lolita/{list → configuration/list}/_tool_header.html.erb +0 -0
- data/app/views/components/lolita/configuration/tab/_display.html.erb +17 -0
- data/app/views/components/lolita/configuration/tab/_fields.html.erb +7 -0
- data/app/views/components/lolita/configuration/tab/content/_display.html.erb +1 -0
- data/app/views/components/lolita/configuration/tab/default/_display.html.erb +9 -0
- data/app/views/components/lolita/{tabs → configuration/tabs}/_display.html.erb +4 -3
- data/app/views/{lolita/layouts → layouts/lolita}/application.html.erb +0 -0
- data/app/views/{lolita/layouts → layouts/lolita}/application.html.erb_spec.rb +0 -0
- data/author +1 -1
- data/lib/lolita.rb +31 -12
- data/lib/lolita/adapter/active_record.rb +16 -5
- data/lib/lolita/adapter/mongoid.rb +2 -2
- data/lib/lolita/base_configuration.rb +44 -2
- data/lib/lolita/builder.rb +31 -14
- data/lib/lolita/configuration/column.rb +92 -86
- data/lib/lolita/configuration/columns.rb +65 -65
- data/lib/lolita/configuration/factory.rb +8 -8
- data/lib/lolita/configuration/field.rb +156 -100
- data/lib/lolita/configuration/field/array.rb +74 -0
- data/lib/lolita/configuration/field/big_decimal.rb +12 -0
- data/lib/lolita/configuration/field/boolean.rb +7 -5
- data/lib/lolita/configuration/field/date.rb +13 -0
- data/lib/lolita/configuration/field/integer.rb +7 -5
- data/lib/lolita/configuration/field/string.rb +8 -6
- data/lib/lolita/configuration/field/time.rb +13 -0
- data/lib/lolita/configuration/fields.rb +36 -0
- data/lib/lolita/configuration/filter.rb +63 -0
- data/lib/lolita/configuration/list.rb +101 -91
- data/lib/lolita/configuration/page.rb +1 -0
- data/lib/lolita/configuration/tab.rb +137 -131
- data/lib/lolita/configuration/tab/content.rb +14 -12
- data/lib/lolita/configuration/tab/default.rb +15 -13
- data/lib/lolita/configuration/tabs.rb +2 -2
- data/lib/lolita/controllers/component_helpers.rb +26 -14
- data/lib/lolita/controllers/internal_helpers.rb +14 -0
- data/lib/lolita/controllers/url_helpers.rb +47 -10
- data/lib/lolita/dbi/base.rb +50 -50
- data/lib/lolita/errors.rb +2 -2
- data/lib/lolita/hooks.rb +298 -0
- data/lib/lolita/hooks/named_hook.rb +122 -0
- data/lib/lolita/lazy_loader.rb +46 -46
- data/lib/lolita/mapping.rb +3 -2
- data/lib/lolita/navigation.rb +48 -0
- data/lib/lolita/observed_array.rb +7 -0
- data/lib/lolita/rails/routes.rb +29 -3
- data/lolita.gemspec +65 -48
- data/public/javascripts/lolita/tab.js +5 -0
- data/public/javascripts/rails.js +137 -137
- data/public/stylesheets/lolita/style.css +3 -1
- data/spec/builder_spec.rb +42 -0
- data/spec/configuration/field_spec.rb +29 -18
- data/spec/configuration/filter_spec.rb +60 -0
- data/spec/configuration/tab_spec.rb +28 -20
- data/spec/configuration/tabs_spec.rb +8 -4
- data/spec/controllers/lolita_rest_spec.rb +15 -0
- data/spec/hooks_spec.rb +191 -0
- data/spec/lolita_spec.rb +6 -4
- data/spec/navigation/tree_spec.rb +59 -0
- data/spec/rails_app/app/mongoid/post.rb +2 -0
- data/spec/rails_app/app/views/components/lolita/{list → configuration/list}/_body_cell.html.erb +0 -0
- data/spec/rails_app/config/application.rb +1 -0
- data/spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb +14 -0
- data/spec/simple_spec_helper.rb +1 -0
- data/spec/spec_helper.rb +1 -2
- metadata +66 -49
- data/README.md +0 -5
- data/app/helpers/components/lolita/list_component.rb +0 -9
- data/app/views/components/lolita/field/_collection.html.erb +0 -5
- data/app/views/components/lolita/field/_date.html.erb +0 -1
- data/app/views/components/lolita/field/_datetime.html.erb +0 -1
- data/app/views/components/lolita/field/_display.html.erb +0 -6
- data/app/views/components/lolita/field/_integer.html.erb +0 -1
- data/app/views/components/lolita/field/_label.html.erb +0 -1
- data/app/views/components/lolita/field/_select.html.erb +0 -1
- data/app/views/components/lolita/field/_text.html.erb +0 -27
- data/app/views/components/lolita/list/_body.html.erb +0 -5
- data/app/views/components/lolita/list/_display.html.erb +0 -11
- data/app/views/components/lolita/list/_header.html.erb +0 -9
- data/app/views/components/lolita/list/_paginator.html.erb +0 -4
- data/app/views/components/lolita/list/_row.html.erb +0 -7
- data/app/views/components/lolita/tab/_content.html.erb +0 -1
- data/app/views/components/lolita/tab/_default.html.erb +0 -11
- data/app/views/components/lolita/tab/_display.html.erb +0 -7
- data/app/views/components/lolita/tab/_fields.html.erb +0 -7
- data/lib/lolita/configuration/field/collection.rb +0 -71
- data/lib/lolita/configuration/field/datetime.rb +0 -10
- data/lib/lolita/configuration/field/disabled.rb +0 -10
- data/lib/lolita/configuration/field/password.rb +0 -10
- data/lib/lolita/configuration/field/text.rb +0 -10
- data/lib/lolita/hooks/base.rb +0 -58
- data/lib/lolita/hooks/component.rb +0 -15
- data/lib/lolita/hooks/hooks.rb +0 -15
@@ -10,7 +10,7 @@ module Lolita
|
|
10
10
|
def add(dbi,*args,&block)
|
11
11
|
@create_temp_object=true
|
12
12
|
begin
|
13
|
-
temp_object=self.new(dbi,*args,&block)
|
13
|
+
temp_object=self.const_get(:Base).new(dbi,*args,&block)
|
14
14
|
rescue Exception => e
|
15
15
|
raise e
|
16
16
|
ensure
|
@@ -24,21 +24,21 @@ module Lolita
|
|
24
24
|
|
25
25
|
def factory(name)
|
26
26
|
begin
|
27
|
-
|
28
|
-
rescue
|
29
|
-
error_class=Lolita
|
30
|
-
raise error_class, "Can't find
|
27
|
+
self.const_get(:"#{to_class(name)}")
|
28
|
+
rescue NameError
|
29
|
+
error_class=Lolita::ConfigurationClassNotFound
|
30
|
+
raise error_class, "Can't find #{self}::#{to_class(name)}. Should be in /configuration/#{factory_name}/#{name}.rb"
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
def to_class(name)
|
35
|
-
name.to_s.downcase.gsub(/_\w/) do |m|
|
35
|
+
name.to_s.downcase.gsub(/_id$/, "").gsub(/(^\w|_\w)/) do |m|
|
36
36
|
m.gsub("_","").upcase
|
37
|
-
end
|
37
|
+
end
|
38
38
|
end
|
39
39
|
|
40
40
|
def factory_name
|
41
|
-
@factory_name||=self.to_s.split("::").last
|
41
|
+
@factory_name||=self.to_s.split("::").last.downcase
|
42
42
|
@factory_name
|
43
43
|
end
|
44
44
|
end
|
@@ -23,133 +23,189 @@ module Lolita
|
|
23
23
|
# end
|
24
24
|
# end
|
25
25
|
# end
|
26
|
-
|
27
|
-
extend Lolita::Configuration::Factory
|
26
|
+
module Field
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
28
|
+
class Base
|
29
|
+
include Lolita::Builder
|
30
|
+
|
31
|
+
@@default_type="string"
|
32
|
+
lolita_accessor :name,:title,:field_set,:nested_for,:options, :html_options,:record,:association
|
33
|
+
attr_reader :dbi,:nested_in
|
34
|
+
|
35
|
+
def initialize dbi, *args, &block
|
36
|
+
@dbi=dbi
|
37
|
+
before_init(*args)
|
38
|
+
begin
|
39
|
+
self.set_attributes(*args)
|
40
|
+
if block_given?
|
41
|
+
self.instance_eval(&block)
|
42
|
+
process_type unless @type
|
43
|
+
end
|
44
|
+
set_default_values
|
45
|
+
validate
|
46
|
+
rescue Exception=>e
|
47
|
+
unless Lolita::Configuration::Field.temp_object?
|
48
|
+
raise e
|
49
|
+
end
|
43
50
|
end
|
44
51
|
end
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
self.record_value
|
51
|
-
else
|
52
|
-
if @value.is_a?(Proc)
|
53
|
-
@value.call(self)
|
52
|
+
|
53
|
+
def value value=nil, &block
|
54
|
+
self.send(:value=,value,&block) if value || block_given?
|
55
|
+
unless @value
|
56
|
+
self.record_value
|
54
57
|
else
|
55
|
-
@value
|
58
|
+
if @value.is_a?(Proc)
|
59
|
+
@value.call(self)
|
60
|
+
else
|
61
|
+
@value
|
62
|
+
end
|
56
63
|
end
|
57
64
|
end
|
58
|
-
end
|
59
65
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
66
|
+
def value=(value=nil,&block)
|
67
|
+
if block_given?
|
68
|
+
@value=block
|
69
|
+
else
|
70
|
+
@value=value
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def type value=nil
|
75
|
+
@type=value.to_s.underscore if value
|
76
|
+
@type
|
65
77
|
end
|
66
|
-
end
|
67
78
|
|
68
|
-
|
69
|
-
|
70
|
-
|
79
|
+
def type=(value)
|
80
|
+
@type=value ? value.to_s.underscore : nil
|
81
|
+
end
|
71
82
|
|
72
|
-
|
73
|
-
|
74
|
-
|
83
|
+
def name=(value)
|
84
|
+
@name=value ? value.to_sym : nil
|
85
|
+
end
|
75
86
|
|
76
|
-
|
77
|
-
|
78
|
-
raise Lolita::ReferenceError, "There is no association between #{self.dbi.klass} and #{dbi.klass}"
|
87
|
+
def type_name
|
88
|
+
self.type.to_s.downcase
|
79
89
|
end
|
80
|
-
raise ArgumentError, "Field can be nested only in Lolita::DBI::Base object." unless dbi.is_a?(Lolita::DBI::Base)
|
81
|
-
@nested_in=dbi
|
82
|
-
end
|
83
|
-
|
84
|
-
def nested?
|
85
|
-
!self.nested_in.nil?
|
86
|
-
end
|
87
90
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
91
|
+
def nested_in=(dbi)
|
92
|
+
unless self.dbi.associations_class_names.include?(dbi.klass.to_s)
|
93
|
+
raise Lolita::ReferenceError, "There is no association between #{self.dbi.klass} and #{dbi.klass}"
|
94
|
+
end
|
95
|
+
raise ArgumentError, "Field can be nested only in Lolita::DBI::Base object." unless dbi.is_a?(Lolita::DBI::Base)
|
96
|
+
@nested_in=dbi
|
97
|
+
end
|
98
|
+
|
99
|
+
def nested?
|
100
|
+
!self.nested_in.nil?
|
101
|
+
end
|
102
|
+
|
103
|
+
def nested_in?(dbi_or_class)
|
104
|
+
if dbi_or_class.is_a?(Lolita::DBI::Base)
|
105
|
+
self.nested_in && self.nested_in.klass==dbi_or_class.klass
|
106
|
+
else
|
107
|
+
self.nested_in && self.nested_in.klass==dbi_or_class
|
108
|
+
end
|
93
109
|
end
|
94
|
-
end
|
95
110
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
self.send(:"#{attr}=",value)
|
111
|
+
|
112
|
+
def set_attributes(*args)
|
113
|
+
@given_attributes.each{|attr,value|
|
114
|
+
if (attr.to_sym==:type && !@type) || attr.to_sym!=:type
|
115
|
+
self.send(:"#{attr}=",value)
|
116
|
+
end
|
103
117
|
}
|
104
118
|
end
|
105
|
-
end
|
106
119
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
120
|
+
# TODO is this useable
|
121
|
+
def record_value #TODO test
|
122
|
+
if self.record
|
123
|
+
self.record.send(self.name.to_sym)
|
124
|
+
else
|
125
|
+
nil
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
private
|
130
|
+
|
131
|
+
def builder_local_variable_name
|
132
|
+
:field
|
113
133
|
end
|
114
|
-
end
|
115
134
|
|
116
|
-
|
117
|
-
|
135
|
+
def set_default_values
|
136
|
+
self.title||=self.name.to_s.gsub("_", " ").capitalize
|
137
|
+
self.options||={}
|
138
|
+
end
|
118
139
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
140
|
+
def before_init *args
|
141
|
+
extract_args *args
|
142
|
+
set_name
|
143
|
+
if @name
|
144
|
+
process_type
|
145
|
+
end
|
146
|
+
end
|
125
147
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
elsif @type.nil? || @type.to_s=="object"
|
131
|
-
@type=@@default_type
|
148
|
+
def process_type
|
149
|
+
set_association
|
150
|
+
set_type_from_args
|
151
|
+
set_type
|
132
152
|
end
|
133
|
-
end
|
134
153
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
154
|
+
def extract_args *args
|
155
|
+
if args
|
156
|
+
@given_args=args
|
157
|
+
@given_attributes=@given_args.extract_options!
|
158
|
+
else
|
159
|
+
@given_args=[]
|
160
|
+
@given_attributes={}
|
161
|
+
end
|
162
|
+
end
|
142
163
|
|
143
|
-
|
144
|
-
|
145
|
-
|
164
|
+
def set_name
|
165
|
+
if @given_args.first
|
166
|
+
self.name=@given_args.first
|
167
|
+
else
|
168
|
+
self.name=@given_attributes[:name]
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
def set_type_from_args
|
173
|
+
self.type=@given_args[1] if @given_args[1]
|
174
|
+
end
|
175
|
+
|
176
|
+
def set_type
|
177
|
+
if !@type
|
178
|
+
if @association
|
179
|
+
self.type="array"
|
180
|
+
elsif dbi_field=self.dbi.fields.detect{|f| f[:name].to_s==@name.to_s}
|
181
|
+
self.type=dbi_field[:type]
|
182
|
+
self.options=dbi_field[:options]
|
183
|
+
end
|
184
|
+
end
|
185
|
+
if @type.nil? || @type.to_s.downcase=="object"
|
186
|
+
self.type=@@default_type
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# Need here because this don't know how to recognize association.
|
191
|
+
# TODO maybe need move to adapter, and it is converted there
|
192
|
+
def set_association #TODO test
|
193
|
+
assoc_name=@name.to_s.gsub(/_id$/,"")
|
194
|
+
@association||=@dbi.reflect_on_association(assoc_name.to_sym) ||
|
195
|
+
@dbi.reflect_on_association(assoc_name.pluralize.to_sym)
|
196
|
+
end
|
197
|
+
|
198
|
+
def validate
|
199
|
+
unless self.name
|
200
|
+
raise Lolita::FieldNameError, "Field must have name."
|
201
|
+
end
|
202
|
+
#FIXME need this validation
|
203
|
+
# if !@value && !@dbi.klass.instance_methods.include?(self.name.to_s)
|
204
|
+
# raise Lolita::FieldNameError, "#{@dbi.klass} must respond to #{self.name} method."
|
205
|
+
# end
|
146
206
|
end
|
147
|
-
|
148
|
-
# if !@value && !@dbi.klass.instance_methods.include?(self.name.to_s)
|
149
|
-
# raise Lolita::FieldNameError, "#{@dbi.klass} must respond to #{self.name} method."
|
150
|
-
# end
|
207
|
+
|
151
208
|
end
|
152
|
-
|
153
209
|
end
|
154
210
|
end
|
155
211
|
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module Lolita
|
2
|
+
module Configuration
|
3
|
+
module Field
|
4
|
+
class Array < Lolita::Configuration::Field::Base
|
5
|
+
lolita_accessor :conditions,:text_method,:value_method,:find_options,:association_type,:include_blank
|
6
|
+
|
7
|
+
def initialize *args,&block
|
8
|
+
@type="array"
|
9
|
+
self.builder="select"
|
10
|
+
@include_blank=true
|
11
|
+
super
|
12
|
+
set_association_type
|
13
|
+
end
|
14
|
+
|
15
|
+
def options_for_select=(value=nil)
|
16
|
+
@options_for_select=value
|
17
|
+
end
|
18
|
+
|
19
|
+
def options_for_select value=nil, &block
|
20
|
+
@options_for_select=value || block if value || block_given?
|
21
|
+
@options_for_select
|
22
|
+
end
|
23
|
+
|
24
|
+
# Collect values for array type field.
|
25
|
+
# Uses <code>text_method</code> for content. By default it search for
|
26
|
+
# first _String_ type field in DB. Uses <code>value_method</code> for value,
|
27
|
+
# by default it it is <code>id</code>. Use <code>conditions</code> or
|
28
|
+
# <code>find_options</code> for advanced search. When <code>find_options</code>
|
29
|
+
# is used, than <code>conditions</code> is ignored.
|
30
|
+
def association_values() #TODO test
|
31
|
+
@association_values||=if options_for_select
|
32
|
+
options_for_select
|
33
|
+
elsif @association
|
34
|
+
klass=@dbi.association_class_name(@association).camelize.constantize
|
35
|
+
current_text_method=@text_method || default_text_method(klass)
|
36
|
+
current_value_method=@value_method || :id
|
37
|
+
options=@find_options || {}
|
38
|
+
options[:conditions]||=@conditions
|
39
|
+
|
40
|
+
klass.find(:all,options).map{|r|
|
41
|
+
[r.send(current_text_method),r.send(current_value_method)]
|
42
|
+
}
|
43
|
+
else
|
44
|
+
[]
|
45
|
+
end
|
46
|
+
@association_values
|
47
|
+
end
|
48
|
+
|
49
|
+
private
|
50
|
+
|
51
|
+
def set_association_type #TODO test
|
52
|
+
if @association
|
53
|
+
@association_type||=(@dbi.association_macro(@association) || :one)
|
54
|
+
else
|
55
|
+
@association_type||=:one
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def default_text_method(klass)
|
60
|
+
assoc_dbi=Lolita::DBI::Base.new(klass)
|
61
|
+
field=assoc_dbi.fields.detect{|f| f[:type].downcase=="string"}
|
62
|
+
if field
|
63
|
+
field[:name]
|
64
|
+
else
|
65
|
+
raise Lolita::FieldTypeError, %^
|
66
|
+
Can't find any content field in #{assoc_dbi.klass}.
|
67
|
+
Use text_method in #{klass} to set one.
|
68
|
+
^
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
1
|
module Lolita
|
2
2
|
module Configuration
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
module Field
|
4
|
+
class Boolean < Lolita::Configuration::Field::Base
|
5
|
+
def initialize *args
|
6
|
+
@type="boolean"
|
7
|
+
super
|
8
|
+
end
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
10
|
-
end
|
12
|
+
end
|
@@ -1,10 +1,12 @@
|
|
1
1
|
module Lolita
|
2
2
|
module Configuration
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
module Field
|
4
|
+
class Integer < Lolita::Configuration::Field::Base
|
5
|
+
def initialize *args
|
6
|
+
@type="integer"
|
7
|
+
super
|
8
|
+
end
|
7
9
|
end
|
8
10
|
end
|
9
11
|
end
|
10
|
-
end
|
12
|
+
end
|