# File lib/kwalify/types.rb, line 134 def collection?(val) return val.is_a?(Array) || val.is_a?(Hash) end
# File lib/kwalify/types.rb, line 143 def collection_type?(type) return type == 'seq' || type == 'map' end
# File lib/kwalify/types.rb, line 119 def self.get_type_class(type) return type_class(type) end
# File lib/kwalify/types.rb, line 138 def scalar?(val) #return !val.is_a?(Array) && !val.is_a?(Hash) && val.class != Object return val.is_a?(Kwalify::Scalar) #&& val.class != Object end
# File lib/kwalify/types.rb, line 147 def scalar_type?(type) return type != 'seq' && type != 'map' && type == 'any' end
Generated with the Darkfish Rdoc Generator 2.