Module: Schema::DataStructure::Build
- Defined in:
- lib/schema/data_structure.rb
Instance Method Summary collapse
Instance Method Details
#build(data = nil, strict = nil) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/schema/data_structure.rb', line 18 def build(data=nil, strict=nil) data ||= {} strict ||= false new.tap do |instance| instance.read(data) set_attributes(instance, data, strict) instance.configure_dependencies end end |