Class: Icss::Meta::IdenticalArrayFactory
- 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_schema ⇒ Object
25 |
# File 'lib/icss/type/type_factory.rb', line 25 def self.to_schema() { :type => 'array' } ; end |