Class Ruote::RuleSession
In: lib/ruote/util/filter.rb
Parent: Object

:nodoc:

The class used to run a rule (a line of a filter).

Methods

_copy_from   _copy_to   _cp_from   _cp_to   _del   _delete   _discard   _e   _empty   _h   _has   _i   _in   _includes   _is   _m   _match   _merge_from   _merge_to   _mg_from   _mg_to   _mi_from   _mi_to   _migrate_from   _migrate_to   _move_from   _move_to   _mv_from   _mv_to   _pu_from   _pu_to   _push_from   _push_to   _remove   _restore   _restore_from   _rm   _rs   _s   _set   _size   _sm   _smatch   _sz   _t   _take   _type   _v   _valid   adjust_target   children_of_type?   do_merge   new   of_type?   raise_or_and   run   split_type  

Constants

SKIP = %w[ and or fields field f ]
BOOLEANS = %w[ and or ]
NUMBER_CLASSES = [ Fixnum, Float ]
BOOLEAN_CLASSES = [ TrueClass, FalseClass ]
TILDE = /^~/
RTILDE = /^\^~/
COMMA_SPLIT = / *, */
PIPE_SPLIT = / *\| */
TYPE_SPLITTER = /^(?: *, *)?([^,<]+(?:<.+>)?)(.*)$/

Public Class methods

Public Instance methods

Protected Instance methods

_cp_from(field, value, matches, m, v)

Alias for _copy_from

_cp_to(field, value, matches, m, v)

Alias for _copy_to

_del(field, value, matches, m, v)

Alias for _remove

_delete(field, value, matches, m, v)

Alias for _remove

_discard(field, value, matches, m, v)

Alias for _take

_e(field, value, matches, m, v)

Alias for _empty

_h(field, value, matches, m, v)

Alias for _has

_i(field, value, matches, m, v)

Alias for _in

_m(field, value, matches, m, v)

Alias for _match

_mg_from(field, value, matches, m, v)

Alias for _merge_from

_mg_to(field, value, matches, m, v)

Alias for _merge_to

_mi_from(field, value, matches, m, v)

Alias for _merge_from

_mi_to(field, value, matches, m, v)

Alias for _merge_to

_migrate_from(field, value, matches, m, v)

Alias for _merge_from

_migrate_to(field, value, matches, m, v)

Alias for _merge_to

_move_from(field, value, matches, m, v)

Alias for _copy_from

_move_to(field, value, matches, m, v)

Alias for _copy_to

_mv_from(field, value, matches, m, v)

Alias for _copy_from

_mv_to(field, value, matches, m, v)

Alias for _copy_to

_pu_from(field, value, matches, m, v)

Alias for _merge_from

_pu_to(field, value, matches, m, v)

Alias for _merge_to

_push_from(field, value, matches, m, v)

Alias for _merge_from

_push_to(field, value, matches, m, v)

Alias for _merge_to

_restore_from(field, value, matches, m, v)

Alias for _restore

_rm(field, value, matches, m, v)

Alias for _remove

_rs(field, value, matches, m, v)

Alias for _restore

_s(field, value, matches, m, v)

Alias for _set

_sm(field, value, matches, m, v)

Alias for _smatch

_sz(field, value, matches, m, v)

Alias for _size

_t(field, value, matches, m, v)

Alias for _type

_v(field, value, matches, m, v)

Alias for _valid

[Validate]