Method: Amatch::Sellers#initialize

Defined in:
ext/amatch_ext.c

#new(pattern) ⇒ Object

Creates a new Amatch::Sellers instance from pattern, with all weights initially set to 1.0.



1179
1180
1181
1182
1183
1184
1185
# File 'ext/amatch_ext.c', line 1179

static VALUE rb_Sellers_initialize(VALUE self, VALUE pattern)
{
    GET_STRUCT(Sellers)
    Sellers_pattern_set(amatch, pattern);
    Sellers_reset_weights(amatch);
    return self;
}