Module: Middlestack::Helper::ClassMethods

Defined in:
lib/middlestack/helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stackObject (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