Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

GLib::FileAttributeMatcher

class GLib::FileAttributeMatcher

GLib::FileAttributeMatcher allows for searching through a GLib::FileInfo for attributes.

Class Methods

GLib::FileAttributeMatcher.new(attributes)
  • Returns: A Glib::FileAttributeMatcher

Instance Methods

=~(attribute)
Same as GLib::FileAttributeMatcher#matches?.
enumerate_namespace(namespace){ |match| }
If a block is given, yield each matched attribute. Otherwise, return true if this GLib::FileAttributeMatcher will match all of the keys in namespace.
  • namespace: A String containing a file attribute namespace
  • Returns: self, if a block was given, otherwise true if this GLib::FileAttributeMatcher will match all of the keys in namespace, false otherwise
enumerate_next
Gets the next matched attribute from a GLib::FileAttributeMatcher.
  • Returns: A String containing the next attribute, or nil if no more attributes exist
matches?(attribute)
Checks if an attribute will be matched by this GLib::FileAttributeMatcher. If the matcher was created with the '*' matching string, this method will always return true.
matches_only?(attribute)
Checks if this GLib::FileAttributeMatcher only matches attribute. If the matcher was created with the '*' matching string, this method will always return false.
Last modified:2010/12/27 21:59:23
Keyword(s):
References:[GLib::FileInfo] [index-ruby-glib2] [index-ruby-gio2] [GLib::FileAttributeMatcher]