class Hashape::Specifiers::Optional
Allows a type spec to also be nil.
Public Instance Methods
===(v)
click to toggle source
# File lib/hashape.rb, line 37 def ===(v) v.nil? || self.spec === v end
Allows a type spec to also be nil.
# File lib/hashape.rb, line 37 def ===(v) v.nil? || self.spec === v end