Class: Rails::Configuration::MiddlewareStackProxy
- Inherits:
-
Object
- Object
- Rails::Configuration::MiddlewareStackProxy
- Defined in:
- railties/lib/rails/configuration.rb
Overview
:nodoc:
Instance Method Summary (collapse)
- - (Object) delete(*args, &block)
-
- (MiddlewareStackProxy) initialize
constructor
A new instance of MiddlewareStackProxy.
- - (Object) insert_after(*args, &block)
- - (Object) insert_before(*args, &block) (also: #insert)
- - (Object) merge_into(other)
- - (Object) swap(*args, &block)
- - (Object) use(*args, &block)
Constructor Details
- (MiddlewareStackProxy) initialize
A new instance of MiddlewareStackProxy
10 11 12 |
# File 'railties/lib/rails/configuration.rb', line 10 def initialize @operations = [] end |
Instance Method Details
- (Object) delete(*args, &block)
32 33 34 |
# File 'railties/lib/rails/configuration.rb', line 32 def delete(*args, &block) @operations << [:delete, args, block] end |
- (Object) insert_after(*args, &block)
20 21 22 |
# File 'railties/lib/rails/configuration.rb', line 20 def insert_after(*args, &block) @operations << [:insert_after, args, block] end |
- (Object) insert_before(*args, &block) Also known as: insert
14 15 16 |
# File 'railties/lib/rails/configuration.rb', line 14 def insert_before(*args, &block) @operations << [:insert_before, args, block] end |
- (Object) merge_into(other)
36 37 38 39 40 41 |
# File 'railties/lib/rails/configuration.rb', line 36 def merge_into(other) @operations.each do |operation, args, block| other.send(operation, *args, &block) end other end |
- (Object) swap(*args, &block)
24 25 26 |
# File 'railties/lib/rails/configuration.rb', line 24 def swap(*args, &block) @operations << [:swap, args, block] end |
- (Object) use(*args, &block)
28 29 30 |
# File 'railties/lib/rails/configuration.rb', line 28 def use(*args, &block) @operations << [:use, args, block] end |