Module: JSON::Schematized::BasicWrapper::Collections

Defined in:
lib/json/schematized/basic_wrapper.rb

Instance Method Summary collapse

Instance Method Details

#coerce_members_to(member_type, json_schema) ⇒ Object



90
91
92
93
94
# File 'lib/json/schematized/basic_wrapper.rb', line 90

def coerce_members_to(member_type, json_schema)
  extend BasicWrapper::SchematizedArray
  self.members_type = member_type
  self.members_module = BasicWrapper.modularize(json_schema)
end