sash_coord

sash_coord(index) Instance Public methods

sash_dragto

sash_dragto(index, x, y) Instance Public methods

sash_mark

sash_mark(index, x, y) Instance Public methods

sash_place

sash_place(index, x, y) Instance Public methods

getwd

getwd() Class Public methods Returns the current working directory as a Pathname. Pathname.getwd #=> #<Pathname:/home/zzak/projects/ruby> See Dir.getwd.

glob

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

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

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.

&lt;=&gt;

<=>(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.