- A
- B
- H
- N
- S
- T
- U
- V
[R] | added | |
[R] | added2 | |
[R] | after_filter_called | |
[R] | after_filter_target_called | |
[R] | before_filter_called | |
[R] | before_filter_target_called | |
[R] | struct_pass_value | |
[R] | void_called |
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 201 def initialize @before_filter_called = false @before_filter_target_called = false @after_filter_called = false @after_filter_target_called = false @void_called = false @struct_pass_value = false end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 210 def add @added = params['a'] + params['b'] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 214 def add2(a, b) @added2 = a + b end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 222 def after_filtered @after_filter_target_called = true [5, 6, 7] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 241 def base_struct_return p1 = Person.new('id' => 1, 'name' => 'person1') p2 = Person.new('id' => 2, 'name' => 'person2') [p1, p2] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 218 def before_filtered @before_filter_target_called = true end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 247 def hash_struct_return p1 = { :id => '1', 'name' => 'test' } p2 = { 'id' => '2', :name => 'person2' } [p1, p2] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 261 def hex(s) return s.unpack("H*")[0] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 237 def struct_pass(person) @struct_pass_value = person end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 231 def struct_return n1 = Node.new('id' => 1, 'name' => 'node1', 'description' => 'Node 1') n2 = Node.new('id' => 2, 'name' => 'node2', 'description' => 'Node 2') [n1, n2] end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 257 def test_utf8 Utf8String end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 227 def thrower raise "Hi, I'm an exception" end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 269 def time(t) t end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 265 def unhex(s) return [s].pack("H*") end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 253 def void @void_called = @method_params end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 274 def alwaysfail(method_name, params) @before_filter_called = true false end
Source: show
# File rails/actionwebservice/test/abstract_dispatcher.rb, line 279 def alwaysok(method_name, params, return_value) @after_filter_called = true end