Module: Errands::TestHelpers::OurStore
- Defined in:
- lib/errands/test_helpers/wrapper.rb
Instance Method Summary collapse
Instance Method Details
#initialize(*_) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/errands/test_helpers/wrapper.rb', line 9 def initialize(*_) s = if _.size == 1 && _.first.is_a?(Hash) _.first.delete(:startup).tap { _.pop if _.first.empty? } elsif _.last.is_a?(Hash) _.pop[:startup] end our_store! (s.is_a?(Hash) ? s : send(s)) || {} super end |