Class: MAWK

Inherits:
Object
  • Object
show all
Defined in:
ext/ruby-mawk.c

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Instance Method Details

#<<(input) ⇒ Object



54
55
56
57
58
59
60
61
# File 'ext/ruby-mawk.c', line 54

static VALUE rd_mawk_append_input(VALUE self, VALUE input) {
  struct mawk *p;

  Data_Get_Struct(self, struct mawk, p);
  libmawk_append_input(p->m, StringValuePtr(input));

  return Qnil;
}

#append_input(input) ⇒ Object



54
55
56
57
58
59
60
61
# File 'ext/ruby-mawk.c', line 54

static VALUE rd_mawk_append_input(VALUE self, VALUE input) {
  struct mawk *p;

  Data_Get_Struct(self, struct mawk, p);
  libmawk_append_input(p->m, StringValuePtr(input));

  return Qnil;
}

#run_mainObject



63
64
65
66
67
68
69
70
# File 'ext/ruby-mawk.c', line 63

static VALUE rd_mawk_run_main(VALUE self) {
  struct mawk *p;

  Data_Get_Struct(self, struct mawk, p);
  libmawk_run_main(p->m);

  return Qnil;
}

#uninitializeObject



45
46
47
48
49
50
51
52
# File 'ext/ruby-mawk.c', line 45

static VALUE rd_mawk_uninitialize(VALUE self) {
  struct mawk *p;

  Data_Get_Struct(self, struct mawk, p);
  libmawk_uninitialize(p->m);

  return Qnil;
}