Class: Maxwell::Agent::Middleware::Chain::Entry
- Inherits:
-
Object
- Object
- Maxwell::Agent::Middleware::Chain::Entry
- Defined in:
- lib/maxwell/agent/middleware/chain.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #build ⇒ Object
-
#initialize(klass, *args) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(klass, *args) ⇒ Entry
Returns a new instance of Entry.
76 77 78 79 |
# File 'lib/maxwell/agent/middleware/chain.rb', line 76 def initialize(klass, *args) @klass = klass @args = args end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
74 75 76 |
# File 'lib/maxwell/agent/middleware/chain.rb', line 74 def klass @klass end |
Instance Method Details
#==(other) ⇒ Object
85 86 87 |
# File 'lib/maxwell/agent/middleware/chain.rb', line 85 def ==(other) self.klass == other.klass end |
#build ⇒ Object
81 82 83 |
# File 'lib/maxwell/agent/middleware/chain.rb', line 81 def build @klass.new(*@args) end |