BaseRule

Abstract base class for all rules.

Direct known subclasses:
HyphenationRule, LetterInNumberRule
(defined in /src/rules/BaseRule.coffee:5)
class BaseRule

Parameters

(None)

Parameters

NameTypeDescription
cCursor cursor to use as interface to text
(defined in /src/rules/BaseRule.coffee:19)
fix: (c) ->

Parameters

NameTypeDescription
cCursor cursor to match against

Returns

NameTypeDescription
(Returns)BooleanWhether the cursor position is matched by the rule
(defined in /src/rules/BaseRule.coffee:12)
match: (c) ->
	throw new Error("'match' not implemented")