Class: Shouter::Guard

Inherits:
Object
  • Object
show all
Defined in:
lib/shouter/guard.rb

Class Method Summary collapse

Class Method Details

.call(guard) ⇒ Object



5
6
7
8
# File 'lib/shouter/guard.rb', line 5

def call(guard)
  return true unless guard
  guard.call
end