sash_coord(index) Instance Public methods
sash_dragto(index, x, y) Instance Public methods
sash_mark(index, x, y) Instance Public methods
sash_place(index, x, y) Instance Public methods
getwd() Class Public methods Returns the current working directory as a Pathname. Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby> See Dir.getwd.
glob(p1, p2 = v2) Class Public methods Returns or yields Pathname objects. Pathname.glob("config/" "*.rb") #=> [#<Pathname:config/environment.rb>, #<Pathname:config/routes.rb>, ..] See Dir.glob.
new(p1) Class Public methods Create a Pathname object from the given String (or String-like object). If path contains a NULL character (\0), an ArgumentError is raised.
pwd() Class Public methods Returns the current working directory as a Pathname. Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby> See Dir.getwd.
+(other) Instance Public methods Appends a pathname fragment to self to produce a new Pathname object. p1 = Pathname.new("/usr") # Pathname:/usr p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby p3 = p1 + "/etc/passwd" # Pathname:/etc/passwd This method doesn't access the file system; it is pure string manipulation.
<=>(p1) Instance Public methods Provides a case-sensitive comparison operator for pathnames. Pathname.new('/usr') <=> Pathname.new('/usr/bin') #=> -1 Pathname.new('/usr/bin') <=> Pathname.new('/usr/bin') #=> 0 Pathname.new('/usr/bin') <=> Pathname.new('/USR/BIN') #=> 1 It will return -1, 0 or 1 depending on the value of the left argument relative to the right argument. Or it will return nil if the arguments are not comparable.
Page 782 of 11844