Module: Icss::Meta::ArrayType

Defined in:
lib/icss/type/structured_schema.rb

Overview

An array of objects with a specified type.

Instance Method Summary collapse

Instance Method Details

#receive(raw) ⇒ Object



80
81
82
83
# File 'lib/icss/type/structured_schema.rb', line 80

def receive(raw)
  return nil if raw.nil? || (raw == "")
  self.new( raw.map{|raw_item| raw_item.is_a?(items) ? raw_item : items.receive(raw_item) } )
end

#to_schemaObject



84
# File 'lib/icss/type/structured_schema.rb', line 84

def to_schema() _schema.to_hash end