# File lib/json/editor.rb, line 39 39: def Editor.fetch_icon(name) 40: @icon_cache ||= {} 41: unless @icon_cache.key?(name) 42: path = File.dirname(__FILE__) 43: @icon_cache[name] = Gdk::Pixbuf.new(File.join(path, name + '.xpm')) 44: end 45: @icon_cache[name] 46: end