Module: SimpleAllow

Defined in:
lib/simple_allow.rb,
lib/simple_allow/version.rb

Constant Summary collapse

VERSION =
'0.1.0'

Instance Method Summary collapse

Instance Method Details

#allow(*allowed) ⇒ Object



4
5
6
# File 'lib/simple_allow.rb', line 4

def allow(*allowed)
  allowed.include?(self) ? self : nil
end