Skip to content
instance method

Pathname#empty?

() -> bool
empty?

Tests the file is empty.

See Dir#empty? and FileTest.empty?.

See also #each_line #entries #each_filename #eql? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0