Class: Icss::Meta::IdenticalHashFactory

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

Class Method Summary collapse

Class Method Details

.receive(obj) ⇒ Object



18
19
20
21
# File 'lib/icss/type/type_factory.rb', line 18

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

.to_schemaObject



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

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