Class: Icss::Meta::IdenticalArrayFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/icss/type/type_factory.rb

Class Method Summary collapse

Class Method Details

.receive(obj) ⇒ Object



26
27
28
29
# File 'lib/icss/type/type_factory.rb', line 26

def self.receive(obj)
  unless obj.nil? || obj.respond_to?(:each) then raise(ArgumentError, "Must supply an arraylike value, got #{obj.to_s[0..100]}") ; end
  obj
end

.to_schemaObject



25
# File 'lib/icss/type/type_factory.rb', line 25

def self.to_schema() { :type => 'array' } ; end