Module: Icss::Meta::HashType

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

Overview

A hash of objects with a specified type.

Instance Method Summary collapse

Instance Method Details

#receive(raw) ⇒ Object



94
95
96
97
98
99
# File 'lib/icss/type/structured_schema.rb', line 94

def receive(raw)
  return nil if raw.nil? || (raw == "")
  obj = self.new
  raw.each{|rk,rv| obj[rk] = (rv.is_a?(values) ? rv : values.receive(rv)) }
  obj
end

#to_schemaObject



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

def to_schema() _schema.to_hash end