Class: ConvenientService::Support::Middleware::StackBuilder
Instance Method Summary
collapse
#call, #delete, #flatten, #inject_logger, #insert, #insert_after, #insert_after_each, #insert_before_each, #inspect, #name, #replace, #use
Constructor Details
#initialize(opts = {}, &block) ⇒ void
21
22
23
24
25
26
27
28
|
# File 'lib/convenient_service/support/middleware/stack_builder.rb', line 21
def initialize(opts = {}, &block)
super
self.stack = opts[:stack] if opts.has_key?(:stack)
end
|
Instance Method Details
#==(other) ⇒ Boolean?
34
35
36
37
38
39
40
41
|
# File 'lib/convenient_service/support/middleware/stack_builder.rb', line 34
def ==(other)
return unless other.instance_of?(self.class)
return false if name != other.name
return false if stack != other.stack
true
end
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/convenient_service/support/middleware/stack_builder.rb', line 59
def dup
self.class.new(
runner_class: @runner_class,
name: @middleware_name.dup,
stack: stack.dup
)
end
|
#to_a ⇒ Array
52
53
54
|
# File 'lib/convenient_service/support/middleware/stack_builder.rb', line 52
def to_a
stack
end
|