Sha256: d951a155b239ec6327ab2e861daebfd5d6192e9150e29f858d1000a2c5812cab
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
# encoding: utf-8 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
csd-0.1.5 | lib/csd/extensions/core/pathname.rb |
csd-0.1.4 | lib/csd/extensions/core/pathname.rb |
csd-0.1.3 | lib/csd/extensions/core/pathname.rb |