Module: Middlestack::Helper::ClassMethods
- Defined in:
- lib/middlestack/helper.rb
Instance Attribute Summary collapse
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
Instance Attribute Details
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
14 15 16 |
# File 'lib/middlestack/helper.rb', line 14 def stack @stack end |
Instance Method Details
#middlewares(&block) ⇒ Object
16 17 18 |
# File 'lib/middlestack/helper.rb', line 16 def middlewares(&block) @stack = Stack.new(&block) end |