Method: CDK::CDKOBJS#bind

Defined in:
lib/cdk/cdk_objs.rb

#bind(type, key, function, data) ⇒ Object



321
322
323
324
325
326
327
328
# File 'lib/cdk/cdk_objs.rb', line 321

def bind(type, key, function, data)
  obj = self.bindableObject(type)
  if key.ord < Ncurses::KEY_MAX && !(obj.nil?)
    if key.ord != 0
      obj.binding_list[key.ord] = [function, data]
    end
  end
end