module Predicated
Attributes
pred[RW]
Public Instance Methods
test(x, env=nil)
click to toggle source
# File lib/destructure/types.rb, line 5 def test(x, env=nil) @pred == nil ? true : @pred.call(x, env) end