Sha256: 4af9a3cec74d9f7cc00a3d77eddbb5b65b91370e6353eac8a8fe196c06de699e
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 Bytes
Contents
require 'pathname' module Polyfill module V2_4 module Pathname module Instance module EmptyQ module Method def empty? if directory? children.empty? else zero? end end end refine ::Pathname do include Method end def self.included(base) base.include Method end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.6.0 | lib/polyfill/v2_4/pathname/instance/empty_q.rb |
polyfill-0.5.0 | lib/polyfill/v2_4/pathname/instance/empty_q.rb |
polyfill-0.4.0 | lib/polyfill/v2_4/pathname/instance/empty_q.rb |