Module: Polyfill::V2_4::Pathname::Instance::EmptyQ::Method
- Defined in:
- lib/polyfill/v2_4/pathname/instance/empty_q.rb
Instance Method Summary collapse
Instance Method Details
#empty? ⇒ Boolean
9 10 11 12 13 14 15 |
# File 'lib/polyfill/v2_4/pathname/instance/empty_q.rb', line 9 def empty? if directory? children.empty? else zero? end end |