Class: Funicular::VDOM::Patcher
- Inherits:
-
Object
- Object
- Funicular::VDOM::Patcher
- Defined in:
- sig/patcher.rbs
Instance Method Summary collapse
-
#apply ⇒ JS::Object
applyaccepts any DOM node so text-node patches (e.g. :replace) can recurse into it; Element-only operations are narrowed inside. -
#initialize ⇒ Patcher
constructor
A new instance of Patcher.
Constructor Details
#initialize ⇒ Patcher
Returns a new instance of Patcher.
6 |
# File 'sig/patcher.rbs', line 6
def initialize: (?JS::Element? doc, ?Runtime? runtime) -> void
|
Instance Method Details
#apply ⇒ JS::Object
apply accepts any DOM node so text-node patches (e.g. :replace)
can recurse into it; Element-only operations are narrowed inside.
9 |
# File 'sig/patcher.rbs', line 9
def apply: (JS::Object element, Array[patch_t] patches) -> JS::Object
|