Codebase list ruby-fxruby / upstream/1.6.42+git20200620.4fad8d6 lib / fox16 / settings.rb
upstream/1.6.42+git20200620.4fad8d6

Tree @upstream/1.6.42+git20200620.4fad8d6 (Download .tar.gz)

settings.rb @upstream/1.6.42+git20200620.4fad8d6raw · history · blame

#
# Adds some methods to FOX's FXSettings class
#
module Fox
  class FXSettings
    #
    # Iterate over sections (where each section is a dictionary).
    #
    def each_section
      pos = first
      while pos < getTotalSize()
        yield data(pos)
        pos = self.next(pos)
      end
    end
  end
end