Exemplo n.º 1
0
    void test_clear() {
        Selector* sel = Selector::lookup(state, state->symbol("foo"));
        SendSite* ss = SendSite::create(state, sel->name());

        sel->associate(state, ss);
        sel->clear(state);
    }
Exemplo n.º 2
0
  void Selector::clear_by_name(STATE, Object* name) {
    Selector* sel = (Selector*)G(selectors)->fetch(state, name);
    if(sel->nil_p()) return;

    sel->clear(state);
  }