module Gio::Resources

Public Class Methods

enumerate_children(path, flags=nil) click to toggle source
# File lib/gio2/resources.rb, line 54
def enumerate_children(path, flags=nil)
  flags ||= ResourceLookupFlags::NONE
  enumerate_children_raw(path, flags)
end
Also aliased as: enumerate_children_raw
enumerate_children_raw(path, flags=nil)
Alias for: enumerate_children
get_info(path, flags=nil) click to toggle source
# File lib/gio2/resources.rb, line 60
def get_info(path, flags=nil)
  flags ||= ResourceLookupFlags::NONE
  get_info_raw(path, flags)
end
Also aliased as: get_info_raw
get_info_raw(path, flags=nil)
Alias for: get_info
lookup_data(path, flags=nil) click to toggle source
# File lib/gio2/resources.rb, line 33
def lookup_data(path, flags=nil)
  flags ||= ResourceLookupFlags::NONE
  lookup_data_raw(path, flags)
end
Also aliased as: lookup_data_raw
lookup_data_raw(path, flags=nil)
Alias for: lookup_data
open_stream(path, flags=nil) { |input_stream| ... } click to toggle source
# File lib/gio2/resources.rb, line 39
def open_stream(path, flags=nil)
  flags ||= ResourceLookupFlags::NONE
  input_stream = open_stream_raw(path, flags)
  if block_given?
    begin
      yield(input_stream)
    ensure
      input_stream.close
    end
  else
    input_stream
  end
end
Also aliased as: open_stream_raw
open_stream_raw(path, flags=nil)
Alias for: open_stream
register(resource) click to toggle source
# File lib/gio2/resources.rb, line 21
def register(resource)
  resource._register
end
unregister(resource) click to toggle source
# File lib/gio2/resources.rb, line 27
def unregister(resource)
  resource._unregister
end