Class: LambdaPrincipal
- Inherits:
-
Object
- Object
- LambdaPrincipal
- Defined in:
- lib/cfn-model/model/lambda_principal.rb
Class Method Summary collapse
Class Method Details
.wildcard?(principal) ⇒ Boolean
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/cfn-model/model/lambda_principal.rb', line 2 def self.wildcard?(principal) if principal.is_a? String return has_asterisk principal elsif principal.is_a? Integer false elsif principal.nil? false else #not legal? raise "whacky lambda principal not string or int: #{principal}" end end |