Module: Polyfill::V2_4::Dir::Class::EmptyQ::Method
- Defined in:
- lib/polyfill/v2_4/dir/class/empty_q.rb
Instance Method Summary collapse
Instance Method Details
#empty?(path_name) ⇒ Boolean
7 8 9 |
# File 'lib/polyfill/v2_4/dir/class/empty_q.rb', line 7 def empty?(path_name) exist?(path_name) && (entries(path_name) - ['.', '..']).empty? end |