Class: Playbook::Props::Proc
- Defined in:
- app/pb_kits/playbook/props/proc.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #validate!, #value
Constructor Details
This class inherits a constructor from Playbook::Props::Base
Instance Method Details
#validate(block) ⇒ Object
6 7 8 |
# File 'app/pb_kits/playbook/props/proc.rb', line 6 def validate(block) block.nil? || block.respond_to?(:call) end |