Module: Roda::RodaPlugins::Flow::InstanceMethods
- Defined in:
- lib/roda/plugins/flow.rb
Instance Method Summary collapse
Instance Method Details
#flow_defaults(args = {}, &block) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/roda/plugins/flow.rb', line 8 def flow_defaults(args = {}, &block) if block_given? defaults.merge!(args) yield else raise RodaError 'must pass a block when using flow defaults' end end |