Method: TkHTML_File_Viewer#meta

Defined in:
sample/tkextlib/tkHTML/ss.rb

#meta(w, tag, alist) ⇒ Object

This routine is called whenever a “<meta>” markup is seen.



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# File 'sample/tkextlib/tkHTML/ss.rb', line 329

def meta(w, tag, alist)
  v = Hash[*simplelist(alist)]

  if v.key?('key') && v.key?('href')
    @hotkey[v['key']] = w.resolve(v['href'])
  end

  if v.key?('next')
    @hotkey['Down'] =v['next']
  end

  if v.key?('prev')
    @hotkey['Up'] =v['prev']
  end

  if v.key?('other')
    @hotkey['o'] =v['other']
  end
end