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