module Gio::Resources - gio2-2.2.0 Documentation

# module Gio::Resources

### Public Instance Methods

enumerate_children(path, flags=nil) click to toggle source

    # File lib/gio2/resources.rb, line 50
    def enumerate_children(path, flags=nil)
      flags ||= ResourceLookupFlags::NONE
      enumerate_children_raw(path, flags)
    end

get_info(path, flags=nil) click to toggle source

    # File lib/gio2/resources.rb, line 56
    def get_info(path, flags=nil)
      flags ||= ResourceLookupFlags::NONE
      get_info_raw(path, flags)
    end

lookup_data(path, flags=nil) click to toggle source

    # File lib/gio2/resources.rb, line 29
    def lookup_data(path, flags=nil)
      flags ||= ResourceLookupFlags::NONE
      lookup_data_raw(path, flags)
    end

open_stream(path, flags=nil) { |input_stream| ... } click to toggle source

    # File lib/gio2/resources.rb, line 35
    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

register(resource) click to toggle source

    # File lib/gio2/resources.rb, line 20
    def register(resource)
      resource._register
    end

unregister(resource) click to toggle source

    # File lib/gio2/resources.rb, line 24
    def unregister(resource)
      resource._unregister
    end