Method: FakeS3::SortedObjectList#add
- Defined in:
- lib/fakes3/sorted_object_list.rb
#add(s3_object) ⇒ Object
Add an S3 object into the sorted list
35 36 37 38 39 40 |
# File 'lib/fakes3/sorted_object_list.rb', line 35 def add(s3_object) return if !s3_object @object_map[s3_object.name] = s3_object @sorted_set << s3_object end |