Sha256: d305319efbb0244d39c03725dbb714d0304af6624f6a78fb8f447b1c9956d4f4
Contents?: true
Size: 656 Bytes
Versions: 4
Compression:
Stored size: 656 Bytes
Contents
require File.join(File.dirname(__FILE__), 'string') module CSD module Extensions module Core module Pathname def children_directories(&block) result = [] children.map do |child| next unless child.directory? block_given? ? yield(child) : result << child end result end def enquote to_s.enquote end def current_path? self.exist? and self.realpath == self.class.getwd.realpath end end end end end class Pathname #:nodoc: include CSD::Extensions::Core::Pathname end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
csd-0.1.2 | lib/csd/extensions/core/pathname.rb |
csd-0.1.1 | lib/csd/extensions/core/pathname.rb |
csd-0.1.0 | lib/csd/extensions/core/pathname.rb |
csd-0.0.16 | lib/csd/extensions/core/pathname.rb |