--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: With no block, open is a synonym for Dir::new. If a block is present, it is passed aDir as a parameter. The directory is closed at the end of the block, and Dir::open returns the value of the block. full_name: Dir::open is_singleton: true name: open params: | Dir.open( string ) => aDir Dir.open( string ) {| aDir | block } => anObject visibility: public