Class: SlackBot::Events::Middleware::Entry
- Inherits:
-
Object
- Object
- SlackBot::Events::Middleware::Entry
- Defined in:
- lib/slack_bot/events/middleware/chain.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
-
#initialize(klass, args = []) ⇒ Entry
constructor
A new instance of Entry.
- #instance! ⇒ Object
Constructor Details
#initialize(klass, args = []) ⇒ Entry
Returns a new instance of Entry.
142 143 144 145 |
# File 'lib/slack_bot/events/middleware/chain.rb', line 142 def initialize(klass, args = []) @klass = klass @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
140 141 142 |
# File 'lib/slack_bot/events/middleware/chain.rb', line 140 def args @args end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
139 140 141 |
# File 'lib/slack_bot/events/middleware/chain.rb', line 139 def klass @klass end |
Instance Method Details
#instance! ⇒ Object
147 148 149 |
# File 'lib/slack_bot/events/middleware/chain.rb', line 147 def instance! klass.new(*args) end |