Class: Pathname
Overview
TODO: Bug in Pathname
Instance Method Summary collapse
- #+(pathname) ⇒ Object
- #directory? ⇒ Boolean
- #entries ⇒ Object
- #exist? ⇒ Boolean
- #mkdir ⇒ Object
- #old_directory ⇒ Object
- #old_entries ⇒ Object
- #old_exist ⇒ Object
- #old_mkdir ⇒ Object
- #old_plus ⇒ Object
- #old_readable_real ⇒ Object
- #old_writable_real ⇒ Object
- #readable_real? ⇒ Boolean
- #writable_real? ⇒ Boolean
Instance Method Details
#+(pathname) ⇒ Object
34 35 36 37 38 |
# File 'lib/unixcmd/aux.rb', line 34 def + (pathname) return old_plus pathname if pathname.class != Pathname || to_s != '~' || pathname.to_s != '..' .old_plus pathname end |
#directory? ⇒ Boolean
41 |
# File 'lib/unixcmd/aux.rb', line 41 def directory?() .old_directory end |
#entries ⇒ Object
42 |
# File 'lib/unixcmd/aux.rb', line 42 def entries() .old_entries end |
#exist? ⇒ Boolean
40 |
# File 'lib/unixcmd/aux.rb', line 40 def exist?() .old_exist end |
#mkdir ⇒ Object
45 |
# File 'lib/unixcmd/aux.rb', line 45 def mkdir() .old_mkdir end |
#old_directory ⇒ Object
28 |
# File 'lib/unixcmd/aux.rb', line 28 alias_method :old_directory, :directory? |
#old_entries ⇒ Object
29 |
# File 'lib/unixcmd/aux.rb', line 29 alias_method :old_entries, :entries |
#old_exist ⇒ Object
27 |
# File 'lib/unixcmd/aux.rb', line 27 alias_method :old_exist, :exist? |
#old_mkdir ⇒ Object
32 |
# File 'lib/unixcmd/aux.rb', line 32 alias_method :old_mkdir, :mkdir |
#old_plus ⇒ Object
26 |
# File 'lib/unixcmd/aux.rb', line 26 alias_method :old_plus, :+ |
#old_readable_real ⇒ Object
30 |
# File 'lib/unixcmd/aux.rb', line 30 alias_method :old_readable_real, :readable_real? |
#old_writable_real ⇒ Object
31 |
# File 'lib/unixcmd/aux.rb', line 31 alias_method :old_writable_real, :writable_real? |
#readable_real? ⇒ Boolean
43 |
# File 'lib/unixcmd/aux.rb', line 43 def readable_real?() .old_readable_real end |
#writable_real? ⇒ Boolean
44 |
# File 'lib/unixcmd/aux.rb', line 44 def writable_real?() .old_writable_real end |