Class Wee::Delegate
In: lib/wee/decoration.rb
Parent: Decoration

A Wee::Delegate breaks the decoration chain and forwards the methods process_callbacks, render_on and backtrack to the corresponding chain method of it‘s delegate component (a Wee::Component).

Methods

Public Class methods

[Source]

# File lib/wee/decoration.rb, line 169
    def initialize(delegate)
      @delegate = delegate
    end

Public Instance methods

Forwards method to the corresponding top-level chain method of the delegate component. We also take snapshots of all non-visible components, thus we follow the @next decoration (via super).

[Source]

# File lib/wee/decoration.rb, line 194
    def backtrack(state)
      super
      @delegate.decoration.backtrack(state)
    end

Forwards method to the corresponding top-level chain method of the delegate component.

[Source]

# File lib/wee/decoration.rb, line 177
    def process_callbacks(callbacks)
      @delegate.decoration.process_callbacks(callbacks)
    end

Forwards method to the corresponding top-level chain method of the delegate component.

[Source]

# File lib/wee/decoration.rb, line 185
    def render_on(r)
      @delegate.decoration.render_on(r)
    end

[Validate]