Class: Circuitry::Middleware::Entry
- Inherits:
-
Object
- Object
- Circuitry::Middleware::Entry
- Defined in:
- lib/circuitry/middleware/entry.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(klass, *args) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(klass, *args) ⇒ Entry
Returns a new instance of Entry.
6 7 8 9 |
# File 'lib/circuitry/middleware/entry.rb', line 6 def initialize(klass, *args) self.klass = klass self.args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
4 5 6 |
# File 'lib/circuitry/middleware/entry.rb', line 4 def args @args end |
#klass ⇒ Object
Returns the value of attribute klass.
4 5 6 |
# File 'lib/circuitry/middleware/entry.rb', line 4 def klass @klass end |
Instance Method Details
#build ⇒ Object
11 12 13 |
# File 'lib/circuitry/middleware/entry.rb', line 11 def build klass.new(*args) end |