Method: Transproc::Conditional.is
- Defined in:
- lib/transproc/conditional.rb
.is(value, type, fn) ⇒ Object
Calls a function when type-check passes
70 71 72 |
# File 'lib/transproc/conditional.rb', line 70 def self.is(value, type, fn) guard(value, -> v { v.is_a?(type) }, fn) end |