Sha256: 58df4309171f0855dabdd7caad885c49dc411df6907499175d371c4b3f5c751f
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
module OasDivider class ComponentsObjectFieldObject attr_accessor :field_name, :field_object def initialize(field_name, field_object) @field_name = field_name @field_object = field_object end def to_file convert_ref YAML.dump(field_object, File.open( File.join(directory, file_name) , 'w') ) end def directory 'components' end def file_name "#{field_name}.yml" end def ref File.join(directory, file_name) end def convert_ref RelativeDocumentReferencer.execute(field_object, 1) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oas_divider-0.2.0 | lib/oas_divider/components_object_field_object.rb |
oas_divider-0.1.0 | lib/oas_divider/components_object_field_object.rb |