Ignore:
Timestamp:
Nov 26, 2007, 8:07:52 AM (13 years ago)
Author:
Pascal Terjan
Message:
  • Add Caca.version and Cucul.version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/ruby/caca.c

    r2019 r2077  
    1616#include "caca-event.h"
    1717
     18static VALUE get_version(VALUE self)
     19{
     20    return rb_str_new2(caca_get_version());
     21}
     22
    1823void Init_caca()
    1924{
    2025    VALUE mCaca = rb_define_module("Caca");
    2126
     27    rb_define_singleton_method(mCaca, "version", get_version, 0);
     28
    2229    Init_caca_display(mCaca);
    2330    Init_caca_event(mCaca);
Note: See TracChangeset for help on using the changeset viewer.